【发布时间】:2010-06-03 04:38:45
【问题描述】:
我的应用流程需要 Navigation 和 TabBar 控制器。所以我决定使用 TabBar 模板。由于我的第一个页面是不需要 TabBar 的登录,因此我使用 presentModelViewController 来显示登录屏幕,如果用户导航到忘记密码,则该屏幕具有导航栏。
LoginView *rootView = [[[LoginView alloc] init] autorelease];
navigationController= [[[UINavigationController alloc] initWithRootViewController:rootView] autorelease];
[tabBarController presentModalViewController:navigationController animated:FALSE];
当用户登录时,我关闭视图控制器并显示带有 5 个选项卡的 TabBar,每个选项卡都包含 TabaleView。用户选择任何行并导航到子视图。
问题是,在子视图上我不需要标签栏。 (仅在仪表板上需要 TabBar)。如果我隐藏 tabBar,则会留有空白。有什么办法可以解决这个问题吗?
【问题讨论】:
标签: iphone