0

这怎么可能?

我采用了一个基于选项卡的应用程序,下面是默认生成的代码

UIViewController *viewController1 = [[GMFirstViewController alloc] initWithNibName:@"GMFirstViewController" bundle:nil];
UIViewController *viewController2 = [[GMSecondViewController alloc] initWithNibName:@"GMSecondViewController" bundle:nil];
self.tabBarController = [[UITabBarController alloc] init];
self.tabBarController.viewControllers = @[viewController1, viewController2];
self.window.rootViewController = self.tabBarController;
[self.window makeKeyAndVisible];

我不想在xib中使用代码并采取tabbar配置的逻辑。这怎么可能。请帮忙 :(

4