1. the status bar generally has a height of 20 pixels. When you call a mobile phone or display a message, the status bar will be enlarged to 40 pixels. Note that the status bar with a height of two times can only be used in portrait mode. For example
You can hide the status bar or set it to gray, black, or translucent black. To hide the status bar, call [[UIApplication sharedApplication] setStatusBarHidden: YES animated: NO]; or set the uistatusbarhidkey to true in the application file Info. plist. 2. in portrait mode, the navigation bar is 44 pixels high and 32 pixels high in horizontal mode. The navigation bar provides a rarely used prompt mode, which expands the height by 30 pixels, in portrait mode, the value is 320*74 pixels, and in Landscape mode, the value is 480*74 pixels. To add a prompt to the navigation bar, Set self. navigationItem. prompt = @"................".
3. the tab toolbar tab is 48 pixels high, and the toolbar is 44 pixels High. The two UI elements are not used in Landscape mode. A typical application with a navigation bar and status bar retains a 320*416 area for the vertical display and a 480*268 area for the horizontal display. If you use the tab bar or toolbar, the height will be reduced by 48 or 44 pixels again. 4. the keyboard and pickerView are generally 320x216 pixels horizontally and 480x162 pixels vertically. In addition, the default UISwitch value is 94*28 pixels, And the UISegmentedControl length is 44 pixels High. The UITextField height is generally at least 30 pixels. 5. The UIScreen class [[UIScreen mainScreen] applicationFrame] generally returns available areas based on the toolbar, Status Bar, and navigation bar in use.
The width and standard of various common controls under the iPhone and iPad are the same, so here we will use the iPhone description.
The following are the heights of common controls. Statusbar, Navigationbar, and Tabbar have extremely wide icons.
The following table shows more detailed parameters, including Statusbar, Navigationbar, Tabbar, toolbar, and Keyboard.