iphone iOS screen, navigation bar, status bar height

Source: Internet
Author: User

1. App size, remove status bar

CGRect r = [UIScreen mainscreen].applicationframe;

r=0,20,320,460

2. Screen size

CGRect rx = [UIScreen mainscreen].bounds;

r=0,0,320,480

3. Status bar Size

CGRect rect;  

When there is a navigation bar, the height of the navigation bar is 44, then the height of the entire view is 320-44-the height of the status bar

4. How to get screen resolution in iphone

CGRect rect == = = Size.Height;

Report:

Also, when designing the UI, pay attention to the user's smallest touch area. There are 2 ways to say

44*44 seems to be from the SDK.

64*64 from Standford Handouts

iphone iOS screen, navigation bar, status bar height

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.