Reputation: 4441
Is there any alternative to check for iPhone 4s, 5 & 5s screen width (has equal value 320) other than [[UIScreen mainScreen] bounds].size.width?
Infact I want to check if its only iPhone 4s,5 or 5s. If I use size classes, it might include iPhone 6 as part of Compact Width & any Height.
Upvotes: 1
Views: 125
Reputation: 7370
You can use this awesome library to detect what type of device the app is on. Right up to iPhone 6 Plus.
Upvotes: 0