1. uinavigationitem
1> Acquisition Method
Self. navigationitem
2> Functions
It can be used to set the content in the navigation bar at the top of the current controller.
Self. navigationitem. Title
Self. navigationitem. titleview
Ii. uibarbuttonitem
1> where to use: Set the content in the upper left corner and upper right corner of the navigation bar
Self. navigationitem. leftbarbuttonitem
Self. navigationitem. rightbarbuttonitem
2> function: equivalent to a button
Iii. uitabbaritem
1> Acquisition Method
Self. tabbaritem
2> Functions
Can be used to set the content of the tab label corresponding to the current controller
Self. tabbaritem. Title // tag title
Self. tabbaritem. Image // tag icon
Self. tabbaritem. selectdimage // selected icon of the tag
Iv. uinavigationbar
1. Navigation controller TOP bar (UI control)
2. What is displayed on the uinavigationbar depends on the navigationitem attribute of the current controller.
3. The uinavigationbar is view, and the navigationitem is model.
4. navigationitem provides the displayed data to uinavigationbar.
V. uitabbar
1. tabs at the bottom of uitabbarcontroller
6. uitabbarbutton
1. Each label at the bottom of uitabbar
2. What is displayed in each uitabbarbutton depends on the tabbaritem attribute of the current controller.
3. uitabbarbutton is view, tabbaritem is Model
4. tabbaritem provides the displayed data to uitabbarbutton.