Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
Added iPhone 6 and 6 plus hardware string (based on request)
Browse files Browse the repository at this point in the history
  • Loading branch information
InderKumarRathore committed Oct 24, 2014
1 parent 8b1f720 commit 5ea306a
Show file tree
Hide file tree
Showing 3 changed files with 339 additions and 313 deletions.
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
.DS_Store
UIDeviceTest
# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control?
#
# Pods/
96 changes: 48 additions & 48 deletions UIDevice+Hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,50 +20,53 @@

typedef enum
{
NOT_AVAILABLE,

IPHONE_2G,
IPHONE_3G,
IPHONE_3GS,
IPHONE_4,
IPHONE_4_CDMA,
IPHONE_4S,
IPHONE_5,
IPHONE_5_CDMA_GSM,
IPHONE_5C,
IPHONE_5C_CDMA_GSM,
IPHONE_5S,
IPHONE_5S_CDMA_GSM,

IPOD_TOUCH_1G,
IPOD_TOUCH_2G,
IPOD_TOUCH_3G,
IPOD_TOUCH_4G,
IPOD_TOUCH_5G,

IPAD,
IPAD_2,
IPAD_2_WIFI,
IPAD_2_CDMA,
IPAD_3,
IPAD_3G,
IPAD_3_WIFI,
IPAD_3_WIFI_CDMA,
IPAD_4,
IPAD_4_WIFI,
IPAD_4_GSM_CDMA,

IPAD_MINI,
IPAD_MINI_WIFI,
IPAD_MINI_WIFI_CDMA,
IPAD_MINI_RETINA_WIFI,
IPAD_MINI_RETINA_WIFI_CDMA,

IPAD_AIR_WIFI,
IPAD_AIR_WIFI_GSM,
IPAD_AIR_WIFI_CDMA,

SIMULATOR
NOT_AVAILABLE,

IPHONE_2G,
IPHONE_3G,
IPHONE_3GS,
IPHONE_4,
IPHONE_4_CDMA,
IPHONE_4S,
IPHONE_5,
IPHONE_5_CDMA_GSM,
IPHONE_5C,
IPHONE_5C_CDMA_GSM,
IPHONE_5S,
IPHONE_5S_CDMA_GSM,

IPHONE_6_PLUS,
IPHONE_6,

IPOD_TOUCH_1G,
IPOD_TOUCH_2G,
IPOD_TOUCH_3G,
IPOD_TOUCH_4G,
IPOD_TOUCH_5G,

IPAD,
IPAD_2,
IPAD_2_WIFI,
IPAD_2_CDMA,
IPAD_3,
IPAD_3G,
IPAD_3_WIFI,
IPAD_3_WIFI_CDMA,
IPAD_4,
IPAD_4_WIFI,
IPAD_4_GSM_CDMA,

IPAD_MINI,
IPAD_MINI_WIFI,
IPAD_MINI_WIFI_CDMA,
IPAD_MINI_RETINA_WIFI,
IPAD_MINI_RETINA_WIFI_CDMA,

IPAD_AIR_WIFI,
IPAD_AIR_WIFI_GSM,
IPAD_AIR_WIFI_CDMA,

SIMULATOR
} Hardware;


Expand All @@ -83,11 +86,8 @@ typedef enum
/** This method returns YES if the current device is better than the hardware passed */
- (BOOL)isCurrentDeviceHardwareBetterThan:(Hardware)hardware;

/** This method returns the resolution for still image that can be received
/** This method returns the resolution for still image that can be received
from back camera of the current device. Resolution returned for image oriented landscape right. **/
- (CGSize)backCameraStillImageResolutionInPixels;

/** This method returns YES if the currend device is iPhone and has 4" display **/
- (BOOL)isIphoneWith4inchDisplay;

@end
Loading

0 comments on commit 5ea306a

Please sign in to comment.