UITabBarController在Three20 TTThumbsViewController中消失
问题描述:
我很难把TTThumbsViewController和UITabBarController放在一起。切换到ThreeThreshold的TTThumbsViewController时,标签栏将消失。我已经阅读了堆栈溢出中的所有问题,但没有任何帮助。我甚至试图设置所有的UITabBarController在Three20 TTThumbsViewController中消失
self.wantsFullScreenLayout = NO;
self.hidesBottomBarWhenPushed = NO;
在我的thumbsviewcontroller和Three20UI项目。这些方法都不起作用。
我正在Xcode4中创建我的应用程序,并且添加了这个缩略图库是最后一部分。
答
我意识到这是一个老气的文章,但如果你使用:
self.wantsFullScreenLayout = NO;
self.hidesBottomBarWhenPushed = NO;
这意味着推动已经发生,因此否定了命令。改用此:
GalleryViewController *gallery = [[GalleryViewController alloc] init];
gallery.wantsFullScreenLayout = NO;
gallery.hidesBottomBarWhenPushed = NO;
然后按下它。这工作。
答
我最终解决了这个问题,通过删除我的代码中的three20导航栏,并简单地使用故事板中的uinavigationcontroller。我不知道为什么,但问题解决了。我希望这可以帮助像我一样使用storyboard with three20。
我已经完成了该项目,但是,谢谢! – Peng90 2012-09-12 17:42:11