Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Update for iPhone SE #33

Open
wants to merge 2 commits into
base: public
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions Telegraph/UIDevice+PlatformInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -69,6 +70,7 @@ typedef enum {
UIDevice6PlusiPhone,
UIDevice6siPhone,
UIDevice6SPlusiPhone,
UIDeviceSE,

UIDevice1GiPod,
UIDevice2GiPod,
Expand Down
2 changes: 2 additions & 0 deletions Telegraph/UIDevice+PlatformInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down