【问题标题】:Sync Navigation Bar To View Controller During Segue在 Segue 期间同步导航栏以查看控制器
【发布时间】:2014-09-26 21:46:28
【问题描述】:

序言

视图控制器 A:没有导航栏。

VIEW CONTROLLER B:有一个导航栏。

目前:当从 VIEW CONTROLLER A 切换到 VIEW CONTROLLER B 时:

导航栏只是出现 [而不是与 VIEW CONTROLLER B 主体同步过渡]。

问题

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

【问题讨论】:

  • 解决方案:将导航栏安装到“ View Controller A ”。使所述导航栏不可见。

标签: ios objective-c uinavigationbar segue


【解决方案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];

【讨论】:

  • 感谢您的回复,但导航栏仍然不同步。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-10-14
相关资源
最近更新 更多