同步导航栏在Segue期间查看控制器

时间:2014-09-26 13:40:54

标签: ios objective-c uinavigationbar segue

PREAMBLE

查看控制器A:没有导航栏。

查看控制器B:有一个导航栏。

目前:当从VIEW CONTROLLER A转到VIEW CONTROLLER B时:

导航栏只显示[而不是与VIEW CONTROLLER B正文同步转换]。

问题

如何强制导航栏与视图控制器主体同步?

1 个答案:

答案 0 :(得分:1)

1.In view will appear of ViewController A hide navigation bar and viewwilldisappear in ViewController B show navigation bar.and
2.hide navigation bar in ViewControllerA and show navigation bar in ViewController B viewwill appear
3.when you push view controller use animated in the parametes [self.navigationcontroller pushviewcontroller:viewb animated:YES];