diff --git a/.gitignore b/.gitignore index adce207..d37db3e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,11 @@ -*.xcodeproj/* -!*.xcodeproj/project.pbxproj -/build +# Mac OS X +._* +*.DS_Store + +# Xcode +build/ +*.pbxuser +*.perspectivev3 +*.xcuserstate +project.xcworkspace/ +xcuserdata/ diff --git a/UIDevice-Hardware.h b/UIDevice-Hardware.h index 261229b..e66a1d5 100644 --- a/UIDevice-Hardware.h +++ b/UIDevice-Hardware.h @@ -20,6 +20,7 @@ #define IPOD_2G_NAMESTRING @"iPod touch 2G" #define IPOD_3G_NAMESTRING @"iPod touch 3G" #define IPOD_4G_NAMESTRING @"iPod touch 4G" +#define IPOD_5G_NAMESTRING @"iPod touch 5G" #define IPOD_UNKNOWN_NAMESTRING @"Unknown iPod" #define IPAD_1G_NAMESTRING @"iPad 1G" @@ -59,6 +60,7 @@ typedef enum { UIDevice2GiPod, UIDevice3GiPod, UIDevice4GiPod, + UIDevice5GiPod, UIDevice1GiPad, UIDevice2GiPad, diff --git a/UIDevice-Hardware.m b/UIDevice-Hardware.m index 07c033f..4f3b70f 100644 --- a/UIDevice-Hardware.m +++ b/UIDevice-Hardware.m @@ -167,6 +167,7 @@ - (NSUInteger) platformType if ([platform hasPrefix:@"iPod2"]) return UIDevice2GiPod; if ([platform hasPrefix:@"iPod3"]) return UIDevice3GiPod; if ([platform hasPrefix:@"iPod4"]) return UIDevice4GiPod; + if ([platform hasPrefix:@"iPod5"]) return UIDevice5GiPod; // iPad if ([platform hasPrefix:@"iPad1"]) return UIDevice1GiPad; @@ -209,6 +210,7 @@ - (NSString *) platformString case UIDevice2GiPod: return IPOD_2G_NAMESTRING; case UIDevice3GiPod: return IPOD_3G_NAMESTRING; case UIDevice4GiPod: return IPOD_4G_NAMESTRING; + case UIDevice5GiPod: return IPOD_5G_NAMESTRING; case UIDeviceUnknowniPod: return IPOD_UNKNOWN_NAMESTRING; case UIDevice1GiPad : return IPAD_1G_NAMESTRING;