Controls for iOS Development Uinavigationcontroller Chapter II-title

Source: Internet
Author: User

1. What is heading (title)

Navigationcontroller inside the Viewcontroller, each page will have a title, 3r is the title of this page

2. How to set the title

It is usually set in the view (Viewcontroller) contained in this navigationcontroller, the code is as follows

-(void) viewdidload {    [super Viewdidload];       @" 3r " ;}

3. Is there any other setting method?

Yes, can be set in the xib inside, such as, must be in the navigation of other pages inside the settings, no longer navigationcontroller page settings, otherwise no effect

4. Why not set this up?

    • Some people in the Navigationcontroller class inside the title, is not possible, because the display of Viewcontroller so to set the title in this Viewcontroller, instant can set the success, will not show, Because the title in the Viewcontroller will be overwritten, so the setting is invalid.
    • Some people in Navigationcontroller son Viewcontroller inside set, is not, because this set, just set Navigationcontroller inside title content, other effect more above the same, So it's not going to work, so remember to set the title in the sub-Viewcontrolller, not the title of their parent Navigationcontroller.
@" TT ";

5. The relationship between it and the title of Uitabbar

Set the code like the following, the result will appear as the effect, Tabbar value, and Navigationbaritem inside the title text content consistent, this proves that, Settitle will be two of content reset at the same time

-(void) viewdidload {    [super Viewdidload];     @" Test " ;}

Controls for iOS Development Uinavigationcontroller Chapter II-title

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.