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