IPhone screen size with status and navigation bar?

Hi, someone can simply confirm the exact size of the remainder of the iphone screen with the status bar and the displayed navigation bar. I'm just trying to make the template work, so I know how much I need to play in the room.

iphone screen = 320 x 480 status bar - 20 pixels nav bar - 44px

so the portrait I have is 320 x 416 and the landscape is 256 x 480

it's all right, it just doesn't seem right to me, especially lanscape dimensions

thanks

+4
source share
3 answers

Note that [[UIScreen mainScreen] applicationFrame] displays the sans status bar. You will need to make additional adjustments for the navigation bar, i.e. 44px.

+2
source

These are the numbers that I used in my projects. Keep in mind that you should try to design flexibly (i.e. do not rely on absolute positioning), so if it changes in the future, you will not have to make significant changes to comply with the new resolution.

+1
source

you can load an existing template:

http://www.teehanlax.com/blog/2009/06/18/iphone-gui-psd-30/

and work from there if you are not sure

0
source

Source: https://habr.com/ru/post/1300918/


All Articles