【问题标题】:ios 7 UITabBarController not working after setSelectedIndexios 7 UITabBarController 在 setSelectedIndex 后不工作
【发布时间】:2014-06-08 09:29:23
【问题描述】:

我的 UITabBarController 有问题。在我使用

更改标签后
tabBarController setSelectedIndex:

在 ios 7 选项卡上没有响应点击,它在 ios 6 上运行良好。

ios7中UITabBarController有什么问题吗?

【问题讨论】:

  • 你的问题不够清楚。你能提供一些细节吗?我的理解是您可以更改选定的标签栏,但是当您点击另一个标签后,它不再改变。是你的问题吗?

标签: ios7 ios6 uitabbarcontroller


【解决方案1】:

在迁移到 xcode5 ios 7 后我遇到了同样的问题,我发现在 setSelectedIndex: 之前调用 popToRootViewControllerAnimated: 会导致问题。

确保你有这个订单

[appDelegate.tabBarController setSelectedIndex:0];

[self.navigationController popToRootViewControllerAnimated:YES];

【讨论】:

    猜你喜欢
    • 2014-11-23
    • 2013-08-09
    • 2014-10-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多