- I have developed app considering 3.5 inch with .xib files and not storyboard.
- I am unable to find any tutorial or guide which will help me in designing app similar for all screens.
- I am using Xcode 5.0.1
- I am developing only plain app with no auto layout and only for iOS 6 and iOS 7 (IPhone).
Below is the screenshot how it differs on different screens.
A. IPhone iOS 6 simulator:
B. 3.5 Inch (Ios 6 and Ios 7) C. 4.0 Inch (Ios 6 and Ios 7)
Update: Please update below answers to also know 4.7 and 5.5 inches screen.
SWIFT:
You can use auto layout or code. In code you can use layoutSubviews method. Just check view height to discover is it a iPhone 3.5 or 4 inch and do your set up:
you can also define globally.
If you want check it Programmatically :
For checking Retina (3.5/4 inch Screen) or Non-Retina
Update:
checking ios8 or ios 7
For checking All retina iPhone Programmatically:
Also check this
FOR Swift 3.0
You can also extend UIDevice as follow:
edit/update Xcode 8.1 • Swift 3.0.1
may it will help you .
Happy coding.
Put below lines in prefix.pch
Now in programming you can say...