重新启动后,应用程序隐藏了 Three20 中的导航栏
我有一个小问题:
我编写了一个使用 tabBarController 的小项目,实现文件只有这种方法:
- (void)viewDidLoad {
[self setTabURLs:[NSArray arrayWithObjects:
@"tt://tableWithShadow",
@"tt://launcher",
@"tt://characterList",
@"tt://mapViewController",
nil]];
}
在我的 appDelegate 中的 appDidFinishLaunching 中,选项卡栏映射如下:
[map from:@"tt://tabBarCon" toSharedViewController:[TabBarController class]];
问题是当应用程序退出,然后重新打开时再次,它不完全记住退出之前的状态,导航栏被隐藏,并且在 tabBar 上没有选择 viewController,它看起来像这样:
http://dl.dropbox.com/u/8583302/Zrzut%20ekranu%202010-10- 13%20%28godz.%2015.17.11%29.png
但它应该是这样的:
在下一篇文章中
有人看到这个并知道解决方法吗?
i've got a small problem:
i've written a small project which is using tabBarController, implementation file have only this methood:
- (void)viewDidLoad {
[self setTabURLs:[NSArray arrayWithObjects:
@"tt://tableWithShadow",
@"tt://launcher",
@"tt://characterList",
@"tt://mapViewController",
nil]];
}
in appDidFinishLaunching in my appDelegate, tab bar is mapped like this:
[map from:@"tt://tabBarCon" toSharedViewController:[TabBarController class]];
the problem is when app quits, and then reopen again, it don't fully remember the state before quiting, the navigationBar is hidden and no viewController is picked on tabBar, it looks like this:
http://dl.dropbox.com/u/8583302/Zrzut%20ekranu%202010-10-13%20%28godz.%2015.17.11%29.png
but it should be like this:
in next post
does anybody seen this and know the way to fix it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能需要为视图控制器指定父属性,如下所示:
You probably need to specify the parent property for your view controllers as follows:
我有和你一样的问题。我假设您的 AppDelegate 有四个映射 url。阅读这篇文章(http://groups.google.com/group/third20/browse_thread/thread/ec022b9aaa39f366/)并从toViewController更改为toSharedViewController后,导航栏在重新启动后显示。
I had same problem as yours. I assume you have four mapping urls at your AppDelegate. After read this post (http://groups.google.com/group/three20/browse_thread/thread/ec022b9aaa39f366/) and changed to toSharedViewController from toViewController, the navigation bar shows up after relaunch.