From 54d49c770a6592c442ebf550bea04b492f8f5a1f Mon Sep 17 00:00:00 2001 From: Steve Moser Date: Tue, 22 Mar 2016 16:32:34 -0400 Subject: [PATCH] Update for iPhone SE --- Telegraph/UIDevice+PlatformInfo.h | 2 ++ Telegraph/UIDevice+PlatformInfo.m | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Telegraph/UIDevice+PlatformInfo.h b/Telegraph/UIDevice+PlatformInfo.h index 7f1c83d88..e88321b76 100644 --- a/Telegraph/UIDevice+PlatformInfo.h +++ b/Telegraph/UIDevice+PlatformInfo.h @@ -21,6 +21,7 @@ #define IPHONE_6Plus_NAMESTRING @"iPhone 6 Plus" #define IPHONE_6S_NAMESTRING @"iPhone 6S" #define IPHONE_6SPlus_NAMESTRING @"iPhone 6S Plus" +#define IPHONE_SE_NAMESTRING @"iPhone SE" #define IPHONE_UNKNOWN_NAMESTRING @"Unknown iPhone" #define IPOD_1G_NAMESTRING @"iPod touch 1G" @@ -69,6 +70,7 @@ typedef enum { UIDevice6PlusiPhone, UIDevice6siPhone, UIDevice6SPlusiPhone, + UIDeviceSE, UIDevice1GiPod, UIDevice2GiPod, diff --git a/Telegraph/UIDevice+PlatformInfo.m b/Telegraph/UIDevice+PlatformInfo.m index 046108efa..9232e9b9f 100644 --- a/Telegraph/UIDevice+PlatformInfo.m +++ b/Telegraph/UIDevice+PlatformInfo.m @@ -101,6 +101,7 @@ - (NSUInteger) platformType if ([platform isEqualToString:@"iPhone7,2"]) return UIDevice6iPhone; if ([platform isEqualToString:@"iPhone8,1"]) return UIDevice6siPhone; if ([platform isEqualToString:@"iPhone8,2"]) return UIDevice6SPlusiPhone; + if ([platform isEqualToString:@"iPhone8,4"]) return UIDeviceSE; // iPod if ([platform hasPrefix:@"iPod1"]) return UIDevice1GiPod; @@ -151,6 +152,7 @@ - (NSString *) platformString case UIDevice6PlusiPhone: return IPHONE_6Plus_NAMESTRING; case UIDevice6siPhone: return IPHONE_6S_NAMESTRING; case UIDevice6SPlusiPhone: return IPHONE_6SPlus_NAMESTRING; + case UIDeviceSEiPhone: return IPHONE_SE_NAMESTRING; case UIDeviceUnknowniPhone: return IPHONE_UNKNOWN_NAMESTRING; case UIDevice1GiPod: return IPOD_1G_NAMESTRING;