我有兩個viewControllers,我從到的firstView導航SecondView由無法顯示導航欄,當我做popViewControllerAnimated
推SecondView導航控制器。因爲我不想導航欄
在SecondView顯示,我下面
self.navigationController.navigationBar.hidden=YES;
然後我搬回從,secondView到的firstView如下
[self.navigationController popViewControllerAnimated:YES];
但是現在導航欄並沒有顯示在FirstView中,因爲我將它隱藏在SecondView的
中。我想在的firstView
-(void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:YES];
self.navigationController.navigationBar.hidden=NO;
}