The default height of the iphone controls

Source: Internet
Author: User
Tags file info

1. Status bar status bar general height of 20 pixels, when you hit the phone or display the message will be magnified to 40 pixels high, note that twice times the height of the status bar as if it can only be used in portrait mode. Such as

Users can hide the status bar, or they can set the status bar to Gray, black, or translucent black. If you need to hide the status bar you can use the call: [[uiapplication sharedapplication] Setstatusbarhidden:yes Animated:no];  Or, set the Uistatusbarhidden key to ture in the application file Info.plist. 2. The navigation bar is 44 pixels high in portrait mode, 32 pixels high in landscape mode, and the navigation bar provides a rarely used hint mode that expands the height of 30 pixels, 320*74 pixels in portrait mode, and 480*74 pixels in landscape mode. To add a hint to the navigation bar, set the Self.navigationItem.prompt = @ "..." .....

3. The Tab toolbar tab is 48 pixels high and the toolbar is 44 pixels high. The length of this two UI element is not used in landscape mode. Typical applications with navigation bars and status bars retain 320*416 areas for portrait display, and 480*268 areas for landscape orientation. If you use the tab bar or toolbar, you will reduce the height by 48 or 44 pixels again. 4. Keyboards and Pickerview This is generally horizontal 320*216 pixels, which are 480*162 pixels in length. In addition, the Uiswitch default is 94*28 pixels, and the Uisegmentedcontrol pass length is 44 pixels high. The Uitextfield height is generally at least 30 pixels. The 5.UIScreen class [[UIScreen Mainscreen] applicationframe] Generally returns the available areas based on the toolbar being used, the status bar, and the navigation bar.

The width and standard of the various common controls under the iphone and ipad are the same, so here's the iphone description.

The following are the height of several common controls. The width of the Statusbar,navigationbar and Tabbar is extremely icon sized.


The following table is a more detailed parameter, including Statusbar,navigationbar, Tabbar, toolbar, keyboard, and so on.

The default height of the iphone controls

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.