【发布时间】:2011-12-23 12:45:19
【问题描述】:
我的问题是关于 UITabbar 控制器的。 我有一个 UInavigation 控制器和一个 UITabbarcontroller 都在我的 Appdelegate 中声明。但是当我的 UIViewController 被 NavigationController 更改时,我希望我的标签栏按钮发生变化。
SettingsViewController *sett = [[SettingsViewController alloc]init];
self.navigationController = [[UINavigationController alloc]init];
[self.navigationController.navigationBar setTranslucent:NO];
[self.navigationController.navigationBar setTintColor:[UIColor blackColor]];
self.navigationController.viewControllers = [NSArray arrayWithObject:viewController1];
self.tabBarController = [[UITabBarController alloc] init];
self.tabBarController.viewControllers = [NSArray arrayWithObjects:self.navigationController,sett, nil];
self.window.rootViewController = self.tabBarController;
如何做到这一点?
【问题讨论】:
标签: objective-c ios uitabbarcontroller