【问题标题】:UITabBarController disappear in Three20 TTThumbsViewControllerUITabBarController 在 Three20 TTThumbsViewController 中消失
【发布时间】:2012-02-28 20:26:52
【问题描述】:

我无法将 TTThumbsViewController 和 UITabBarController 放在一起。切换到 Three20 的 TTThumbsViewController 后标签栏会消失。我已经阅读了堆栈溢出中的所有问题,但没有任何帮助。我什至尝试设置所有

self.wantsFullScreenLayout = NO; 
self.hidesBottomBarWhenPushed = NO;

在我的 thumbsviewcontroller 和 Three20UI 项目中。这些方法都不起作用。

我正在使用故事板在 Xcode4 中构建我的应用程序,添加这个拇指库是最后一部分。

【问题讨论】:

    标签: xcode uitabbarcontroller three20 ttthumbsviewcontroller


    【解决方案1】:

    我知道这是一篇过时的帖子,但如果你使用:

    self.wantsFullScreenLayout = NO; 
    self.hidesBottomBarWhenPushed = NO;
    

    IT 表示推送已经发生,因此否定命令。改用这个:

    GalleryViewController *gallery = [[GalleryViewController alloc] init];
    gallery.wantsFullScreenLayout = NO; 
    gallery.hidesBottomBarWhenPushed = NO;
    

    然后推它。这行得通。

    【讨论】:

      【解决方案2】:

      我最终通过删除代码中的 three20 导航栏并简单地使用情节提要中的 uinavigationcontroller 解决了这个问题。我不知道为什么,但问题解决了。我希望这可以帮助像我这样使用three20的故事板的人。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-04-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-10-02
        相关资源
        最近更新 更多