Skip to content

Commit

Permalink
update UIDevice JKHardware
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakey committed Mar 6, 2018
1 parent 4ebdd8c commit 226e87e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions JKCategories/UIKit/UIDevice/UIDevice+JKHardware.m
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ + (NSString *)jk_platformString{
if ([platform isEqualToString:@"iPad6,7"]) return @"iPad Pro 12.9-inch (WiFi)";
if ([platform isEqualToString:@"iPad6,8"]) return @"iPad Pro 12.9-inch (Cellular)";

if ([platform isEqualToString:@"iPad6,11"]) return @"iPad 5 (WiFi)";
if ([platform isEqualToString:@"iPad6,12"]) return @"iPad 5 (Cellular)";
if ([platform isEqualToString:@"iPad7,1"]) return @"iPad Pro 12.9-inch (WiFi)";
if ([platform isEqualToString:@"iPad7,2"]) return @"iPad Pro 12.9-inch (Cellular)";
if ([platform isEqualToString:@"iPad7,3"]) return @"iPad Pro 10.5-inch (WiFi)";
if ([platform isEqualToString:@"iPad7,4"]) return @"iPad Pro 10.5-inch (Cellular)";

if ([platform isEqualToString:@"i386"]) return [UIDevice currentDevice].model;
if ([platform isEqualToString:@"x86_64"]) return [UIDevice currentDevice].model;

Expand Down

0 comments on commit 226e87e

Please sign in to comment.