[iOS Weibo project-1.4]-Various item Navigationbar & Navigationitem & Barbuttonitem | | TabBar & Tabbaritem

Source: Internet
Author: User

First, Uinavigationitem
How to get 1>
Self.navigationitem//Self refers to the controller

2> effect
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
Where is 1> used?
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> effect
Equivalent to a button three, Uitabbaritem
How to get 1>
Self.tabbaritem//Self refers to the controller

2> effect
Can be used to set the contents of the tab label for the current controller
Title of the label
Self.tabBarItem.title
Icon for the label
Self.tabBarItem.image
Selected 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. The data displayed by Tabbaritem to Uitabbarbutton

[iOS Weibo project-1.4]-Various item Navigationbar & Navigationitem & Barbuttonitem | | TabBar & Tabbaritem

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.