2010-10-13 78 views
1

我有一个小问题:重新开张后,应用程序隐藏在three20导航栏

我写这是使用tabBarController一个小项目,实现文件只有这methood:

- (void)viewDidLoad { 
[self setTabURLs:[NSArray arrayWithObjects: 
    @"tt://tableWithShadow", 
    @"tt://launcher", 
    @"tt://characterList", 
    @"tt://mapViewController", 
    nil]]; 
} 

在appDidFinishLaunching在我的appDelegate,标签栏被映射这样的:

[map from:@"tt://tabBarCon" toSharedViewController:[TabBarController class]]; 

的问题是,当应用程序退出,然后再重新打开,它不完全记得ST吃在quiting前,的导航栏是隐藏的,没有的viewController被欺负TabBar,所以它看起来像这样:

http://dl.dropbox.com/u/8583302/Zrzut%20ekranu%202010-10-13%20%28godz.%2015.17.11%29.png

,但它应该是这样的:

在接下来的文章

是否有人看到这一点,并知道如何解决它?

回答

1

你可能需要指定parent属性为您的视图控制器如下:

[map from:@"tt://tableWithShadow" 
     parent:@"tt://tabBarCon" 
     toViewController:[TableWithShadowViewController class] 
     selector: nil 
     transition: 0]; 
0

我有同样的问题你。我假设你的AppDelegate有四个映射网址。阅读本文后(http://groups.google.com/group/three20/browse_thread/thread/ec022b9aaa39f366/)并将其更改为toViewController中的SharedViewController后,导航栏会在重新启动后显示。

[map from:@"tt://tableWithShadow" toSharedViewController:[TableWithShadowController class]]; 
[map from:@"tt://launcher" toSharedViewController:[LauncherController class]]; 
[map from:@"tt://characterList" toSharedViewController:[CharacterListController class]]; 
[map from:@"tt://mapViewController" toSharedViewController:[MapViewControllerController class]];