我是这个 iphone 开发的新手。我创建了一个标签栏应用程序,它由 6 个标签组成,这是在 appdelegaate 文件中创建标签栏控制器的代码 didfinishlaunching
UIViewController *viewController1 = [[[cardsAvailable1 alloc]
initWithNibName:@"cardsAvailable1" bundle:nil] autorelease];
UIViewController *viewController2 = [[[fetchcard1 alloc]
initWithNibName:@"fetchcard1" bundle:nil] autorelease];
UIViewController *viewController3 = [[[registration alloc]
initWithNibName:@"registration" bundle:nil] autorelease];
UIViewController *viewController4 = [[[logintab alloc]
initWithNibName:@"logintab" bundle:nil] autorelease];
UIViewController *viewController5 = [[[registration alloc]
initWithNibName:@"logout" bundle:nil] autorelease];
UIViewController *viewController6 = [[[logintab alloc]
initWithNibName:@"myprofile" bundle:nil] autorelease];
self.tabBarController = [[[UITabBarController alloc] init] autorelease];
self.tabBarController.viewControllers = [NSArray arrayWithObjects:
[[[UINavigationController alloc] initWithRootViewController:viewController1] autorelease],
[[[UINavigationController alloc] initWithRootViewController:viewController2] autorelease],
[[[UINavigationController alloc] initWithRootViewController:viewController3] autorelease],
[[[UINavigationController alloc] initWithRootViewController:viewController4] autorelease],
[[[UINavigationController alloc] initWithRootViewController:viewController5] autorelease],
[[[UINavigationController alloc] initWithRootViewController:viewController6] autorelease],
nil];
self.tabBarController.selectedIndex = 3;
self.window.rootViewController = self.tabBarController;
[self.window addSubview:self.tabBarController.view];
[self.window makeKeyAndVisible];
现在我的问题是在一个人登录后,即单击登录页面中存在的登录按钮我想隐藏两个标签栏项目,即注册页面和登录页面,并且需要带标签栏的注销页面和 myprofile 页面包括获取卡和可用卡,有人可以建议我一种方法吗?