iOS Question How to auto adjust screen by iphone type?

dataware

Member
Licensed User
greetings to all. I need your help, I do not know how to achieve the full screen adjustment of my application on all iphone models.

Example: design the application for iphone 4, but seeing it on an iphone 5 or 6 or 7 is reduced and does not look complete

Thank you in advance.

:)
 

tufanv

Expert
Licensed User
Longtime User
greetings to all. I need your help, I do not know how to achieve the full screen adjustment of my application on all iphone models.

Example: design the application for iphone 4, but seeing it on an iphone 5 or 6 or 7 is reduced and does not look complete

Thank you in advance.

:)

This is a very basic concept. You have to use designer script and use x y values instead of numbers. For example , Instead of label1.left=20 you can use label1.left=7%x which will position the label on 0.07 * screenwidth ( lets say iphone 4 : screen width is 320 ) it will position the view on 320*0.07 = 22 . So on iphone 6 the screen width is 375 it will poısition the view at 375*0.07 = xxx . By adding different variants to designer script you can control each screen seperately.
 
Last edited:
Upvote 0
Top