【问题标题】:adding tab-bar controls on pushed UINavigationController在推送的 UINavigationController 上添加标签栏控件
【发布时间】:2012-11-13 21:16:29
【问题描述】:

'M 使用故事板和我的项目并嵌入了 UINavigationController 和 TabBarController,问题是当我尝试按下按钮的 UIViewController 之一时,获得的 UINavigationcontroller 没有 TabBarController 按钮。

谁能帮帮我?

【问题讨论】:

    标签: uinavigationcontroller uitabbarcontroller tabbar


    【解决方案1】:

    您的设置/层次结构应如下所示

    UITabBarController -> UINavigationController -> UI"Whatever"ViewController
    

    如果您随后在UI"Whatever"ViewController 中推送视图,则您的NavigationBar 和您的TabBar 应该保留。

    【讨论】:

    • Setup/Hierarchy1: UINavigationController -> UI"Whatever1"ViewController 和 Setup/Hierarchy2: UITabBarController -> UINavigationController -> UI"Whatever"ViewController 并且我试图按下按钮推送 UI"Whatever2"ViewController在 UI“Whatever1”ViewController 中。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多