Thursday, December 5, 2013

Consult a navigation bar on ios hidden problems

Ask a question
hide the navigation bar on ios
I do e-books, the first page is a directory, there is the navigation bar, the second page is the text, there is no navigation bar.
Click the catalog interface will enter the text interface
I set the navigation bar hidden in the body of viewdidload in
self.navigationControl.navigationBarHidden = YES;
Such is hidden, but returned to the directory interface found on page navigation bar none.
I added in the catalog category viewdidload in self.navigationControl.navigationBarHidden = NO;
Still does not work, there is no expert answers under ah?

Reply:
- (Void) viewDidAppear: (BOOL) animated
{
This method seems to be} wrote, because he seems to be returning the current page is loaded, but viewdidload is loaded when the page is loaded first.
Reply:
viewDidLoad init method only when the page will be called once, this method will not go back to the page after each time, but every time tune viewWillAppear and viewDidAppear methods, so one of these two methods together with you that sentence should on it.
Reply:
12 F is a positive solution. Exit when you can unhide the viewdisappear
Reply:
I thought to use. Hidden = yes ...
Reply:
cited a floor reply:
- (void) viewDidAppear: (BOOL) animated
{

.... Hide = NO
This method seems to be} wrote, because he seems to be returning the current page is loaded, but viewdidload is loaded when the page is loaded first.


He wrote this

No comments:

Post a Comment