2011-03-23 52 views

回答

1

實際上,你有你的視圖控制器加載到的UITabBarController。所以,如果你有一個tableViewController,viewController1和viewController 2,你想把所有這些添加到tabBarController。

UITabBarController *tabBarController = [[UITabBarController alloc] init]; 
tabBarController.viewControllers:[NSArray arrayWithObjects:tableViewController, vc1, vc2]; 

[self.window addSubView:tabBarController.view]; 
[self.window makeKeyAndVisible]; 
相關問題