【问题标题】:Popping off to MoreViewController tab from its stacked screens从堆叠的屏幕弹出到 MoreViewController 选项卡
【发布时间】:2012-10-18 16:42:45
【问题描述】:

我选择应用程序的更多选项卡,进入某个屏幕,在该屏幕上再做一个选择。所以堆栈上的两个屏幕,并在那里呈现一个modalView。

鉴于上述场景,我需要将用户从他来的地方遍历回More 选项卡。 自己试了一下,后来参考网上的一些建议都没有解决问题。

我写了下面的代码,和其他人建议的类似。

[[self.tabBarController moreNavigationController] dismissModalViewController:YES] [[self.tabBarController moreNavigationController] popToRootViewController:YES]

你能帮帮我吗?

【问题讨论】:

    标签: cocoa-touch uinavigationcontroller uitabbarcontroller


    【解决方案1】:

    对于延迟提及这一点,我深表歉意。我刚刚测试了这个。

    注意事项:

    1. 对于更多与选项卡相关的内容,使用更多 UINavigationController,除非 我们在 more 上更改导航流程,可以访问屏幕堆栈 通过更多 UINavigationController。
    2. 我能够从推送屏幕和建模屏幕弹出ToRootView BY

      [self.tabBarController.moreNavigationController dismissModalViewControllerAnimated:YES]; [self.tabBarController.moreNavigationController popToRootViewControllerAnimated:YES];

    【讨论】:

      猜你喜欢
      • 2022-01-20
      • 2014-03-28
      • 1970-01-01
      • 1970-01-01
      • 2020-04-02
      • 2022-06-15
      • 1970-01-01
      • 2016-09-19
      • 1970-01-01
      相关资源
      最近更新 更多