Skip to content

Commit

Permalink
add iphonex model
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakey committed Oct 11, 2017
1 parent 3ac87a7 commit 9a2ce8b
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions JKCategories-Demo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -2932,6 +2932,11 @@
TargetAttributes = {
A22725CD1A3E72D50061605B = {
CreatedOnToolsVersion = 6.1;
SystemCapabilities = {
com.apple.BackgroundModes = {
enabled = 0;
};
};
};
};
};
7 changes: 7 additions & 0 deletions JKCategories/UIKit/UIDevice/UIDevice+JKHardware.m
Original file line number Diff line number Diff line change
@@ -55,6 +55,13 @@ + (NSString *)jk_platformString{
if ([platform isEqualToString:@"iPhone9,2"]) return @"iPhone 7 Plus";
if ([platform isEqualToString:@"iPhone9,3"]) return @"iPhone 7";
if ([platform isEqualToString:@"iPhone9,4"]) return @"iPhone 7 Plus";
if ([platform isEqualToString:@"iPhone10,1"]) return @"iPhone 8";
if ([platform isEqualToString:@"iPhone10,4"]) return @"iPhone 8";
if ([platform isEqualToString:@"iPhone10,2"]) return @"iPhone 8 Plus";
if ([platform isEqualToString:@"iPhone10,5"]) return @"iPhone 8 Plus";
if ([platform isEqualToString:@"iPhone10,3"]) return @"iPhone X";
if ([platform isEqualToString:@"iPhone10,6"]) return @"iPhone X";


if ([platform isEqualToString:@"iPod1,1"]) return @"iPod Touch 1G";
if ([platform isEqualToString:@"iPod2,1"]) return @"iPod Touch 2G";

0 comments on commit 9a2ce8b

Please sign in to comment.