Summary of three project columns:
Toolbar: Uitoolbar navigation bar: Uinavigationbar tab bar: Uitabbar The Uitoolbar button unit is: Uibarbuttonitemuinavigationbar button Unit: Uinavigationitemuitabbar button Unit: Uitabbaritem
Common Properties and methods:
@property (nonatomic,copy) Nsarray *items; Button cell Array
-(void) Setitems: (Nsarray *) Items animated: (BOOL) animated; Set All button cells to the project bar
Note: A navigation bar controller only corresponds to one navigation bar, except that it has a toolbar, but by default it is hidden and needs to be opened if needed. A tab bar controller has only one tab bar.
Navigation bar, tab bar, toolbar and status bar
Status bar
Although it is difficult to control the contents of the status bar, you can customize its appearance and customize its behavior to some extent. Specifically, you can: set whether the network activity indicator should be visible. If your application is performing a network operation that lasts more than a few seconds, you should display the network activity indicator. If the network operation will finish in a few seconds, you do not have to display the network activity indicator because it is likely to disappear before the user realizes it exists. (in your code, you can use the UIApplication method networkactivityindicatorvisible to control the visibility of the indicator.) ) Specifies the color of the status bar. You can choose Gray (the default color), opaque black or translucent black (that is, the alpha value is 0.5 black). Figure 6-2 shows these styles. (Note that you should set a value in the Info.plist file to specify the style of the status bar; For more information, refer to the iphone application Programming Guide.) Sets whether the status bar color changes should be animated. (Note that the animation effect causes the old status bar to slide out of the screen until it disappears, and the new status bar slides to the appropriate position.) )
Navigation bar
The buttons on the navigation bar have a circle with a corner around the box. In the iphone OS, this style is called the border style. The border style is used for all controls on the navigation bar. In fact, even if you place a control with no formatting (no borders) on the navigation bar, it is automatically converted to a border style. Although you can specify fonts for all the text displayed in the navigation bar, it is recommended that you use system fonts for readability. When you create a navigation bar with the appropriate Uikit programming interface, its caption is automatically displayed with the system font.
Tool bar
It is best to limit the number of items displayed on the toolbar so that users can easily click on the items they want. The user interface elements that we recommend to you are 44 pixels in the click Area, so it is reasonable to provide users with five of the following toolbar items. Although you can use a button with a border style in the toolbar, you can use the unformatted button, but you don't mix the two styles in the same toolbar.
tab bar
The tab bar should never be used as a toolbar, except that the buttons on the toolbar work on the elements in the current mode. The tab bar displays icons and text with labels that are of the same width and are in black as the background. When a label is selected, its background is lit and the image in the label is highlighted.
Note: Regardless of the direction of the device, the tab bar does not change its opacity and height.
If your app's tab bar contains more than five tags, iPhone OS will display four tabs on the tab bar and add a "more" tab.
There are two ways to hide the tab bar:
First way: By setting the Hidesbottombarwhenpushed property of the View controller (before the view is loaded successfully)
Second way: Frame (view displayed successfully) by re-setting the two sub-views of the tab bar Controller view
IOS: status bar, navigation bar, tab bar, toolbar