inamiy / YIFullScreenScroll

Pinterest-like scroll-to-fullscreen UI for iOS5+.
http://www.cocoacontrols.com/controls/yifullscreenscroll
214 stars 27 forks source link

the navigationbar DID NOT SHOW in the second viewcontroller when the navigationbar is HIDDEN in the first view controller #16

Open ben46 opened 11 years ago

ben46 commented 11 years ago

I want to hide the navigationbar in the first viewcontroller , and use the fullScreenScroll in the second viewcontroller .
Now the problem is:
when I push the second view controller from first viewcontroller, the navigationbar DID NOT SHOW in the second viewcontroller.
Following is the code I use in the first view controller:

-(void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:YES animated:animated];
}

-(void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:NO animated:animated];
}
inamiy commented 11 years ago

Thanks for feedback. I'll test this later, but it may take long time to solve, so please be patient.

By the way, if you don't display navigationBar from start point, it might be a good idea to always hide the original and add your custom navigationBar only in secondViewController.

uschen commented 10 years ago

YES, this behavior is confirmed. and

[self.navigationController setNavigationBarHidden:NO];

on viewWillDisappear wont' help

probably the only way to show navbar is using [self.fullScreenScroll showUIBarsAnimated:NO];

inamiy commented 10 years ago

Sorry, haven't tested for long time. It'll be nice if you can share me a bug demo.