Permalink
Browse files

Replaced iPhone 5 with iPhone 4S

  • Loading branch information...
1 parent 8a0dc7c commit c924aad03f9b7a752cf51db9e52a5d52ef95001b @tkyk committed Oct 19, 2011
Showing with 5 additions and 6 deletions.
  1. +2 −2 UIDevice-Hardware.h
  2. +3 −4 UIDevice-Hardware.m
View
@@ -12,7 +12,7 @@
#define IPHONE_3G_NAMESTRING @"iPhone 3G"
#define IPHONE_3GS_NAMESTRING @"iPhone 3GS"
#define IPHONE_4_NAMESTRING @"iPhone 4"
-#define IPHONE_5_NAMESTRING @"iPhone 5"
+#define IPHONE_4S_NAMESTRING @"iPhone 4S"
#define IPHONE_UNKNOWN_NAMESTRING @"Unknown iPhone"
#define IPOD_1G_NAMESTRING @"iPod touch 1G"
@@ -46,7 +46,7 @@ typedef enum {
UIDevice3GiPhone,
UIDevice3GSiPhone,
UIDevice4iPhone,
- UIDevice5iPhone,
+ UIDevice4SiPhone,
UIDevice1GiPod,
UIDevice2GiPod,
View
@@ -25,8 +25,7 @@ @implementation UIDevice (Hardware)
iPhone3,1 -> iPhone 4/AT&T, N89
iPhone3,2 -> iPhone 4/Other Carrier?, ??
iPhone3,3 -> iPhone 4/Verizon, TBD
- iPhone4,1 -> (iPhone 5/AT&T), TBD
- iPhone4,2 -> (iPhone 5/Verizon), TBD
+ iPhone4,1 -> iPhone 4S
iPod1,1 -> iPod touch 1G, N45
iPod2,1 -> iPod touch 2G, N72
@@ -136,7 +135,7 @@ - (NSUInteger) platformType
if ([platform isEqualToString:@"iPhone1,2"]) return UIDevice3GiPhone;
if ([platform hasPrefix:@"iPhone2"]) return UIDevice3GSiPhone;
if ([platform hasPrefix:@"iPhone3"]) return UIDevice4iPhone;
- if ([platform hasPrefix:@"iPhone4"]) return UIDevice5iPhone;
+ if ([platform hasPrefix:@"iPhone4"]) return UIDevice4SiPhone;
// iPod
if ([platform hasPrefix:@"iPod1"]) return UIDevice1GiPod;
@@ -174,7 +173,7 @@ - (NSString *) platformString
case UIDevice3GiPhone: return IPHONE_3G_NAMESTRING;
case UIDevice3GSiPhone: return IPHONE_3GS_NAMESTRING;
case UIDevice4iPhone: return IPHONE_4_NAMESTRING;
- case UIDevice5iPhone: return IPHONE_5_NAMESTRING;
+ case UIDevice4SiPhone: return IPHONE_4S_NAMESTRING;
case UIDeviceUnknowniPhone: return IPHONE_UNKNOWN_NAMESTRING;
case UIDevice1GiPod: return IPOD_1G_NAMESTRING;

0 comments on commit c924aad

Please sign in to comment.