IOS Item Property Summary

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 content in the upper right corner of the navigation bar
Self. Navigationitem.rightbarbuttonitem

2> Effect
Equivalent to a button

Third, 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 label
Self. tabbaritem.title
//Icon for tags
Self. tabbaritem.image
//Label's check icon
Self. tabbaritem.selectdimage

Iv. Uinavigationbar
1. Navigation bar at the top of the Controller (UI controls)
2.UinavigationbarWhat is shown above depends on the current controller'sNavigationitemProperty
3.UinavigationbarIsView,NavigationitemIsModel
4. ByNavigationitemTo giveUinavigationbarProvide the displayed data

Wu, Uitabbar
1.Uitabbarcontrollertab strip at the bottom

Liu, Uitabbarbutton
1.UitabbarEach label on the bottom
2. EachUitabbarbuttonWhat is displayed in it depends on the current controller'sTabbaritemProperty
3.UitabbarbuttonIsView,TabbaritemIsModel
4. ByTabbaritemTo giveUitabbarbuttonProvide the displayed data

IOS Item Property Summary

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.