iOS Development Project Chapter -11item
First, Uinavigationitem
1. How to obtain
Self.navigationitem//Self refers to the controller
2. Role
Can be used to set the contents of the navigation bar at the top of the current controller
Set content in the middle of the navigation bar
Self.navigationItem.title
Self.navigationItem.titleView
Second, Uibarbuttonitem
1. Where to use
Set the contents of the upper-left corner of the navigation bar
Self.navigationItem.leftBarButtonItem
Set the contents of the upper right corner of the navigation bar
Self.navigationItem.rightBarButtonItem
2. Role
Equivalent to a button
Third, Uitabbaritem
1. How to obtain
Self.tabbaritem//Self refers to the controller
2. Role
Can be used to set the contents of the tab label for the current controller
Title of the label Self.tabBarItem.title
Icon of the label Self.tabBarItem.image
The check icon for the label Self.tabBarItem.selectdImage
Iv. Uinavigationbar
1. Navigation bar at the top of the Controller (UI controls)
2. Uinavigationbar What is shown above, depending on the Navigationitem property of the current controller
3. Uinavigationbar is view, Navigationitem is model
4. Provide the displayed data to Uinavigationbar by Navigationitem
Wu, Uitabbar
1. Uitabbarcontroller tab strip at bottom
Liu, Uitabbarbutton
1. Each label on the bottom of the Uitabbar
2. What is displayed in each Uitabbarbutton, depending on the Tabbaritem property of the current controller
3. Uitabbarbutton is view, Tabbaritem is model
4. Provide the displayed data to Uitabbarbutton by Tabbaritem
Seven
description :Uinavigationitem Controls What is displayed on the navigation bar of this controller.
description :uitabbaritem manipulates tab labels.
Research methods, print all of the child objects of the control, and be careful not to print in the Viewdidload method.