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];
}
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: