How to set UITabBarController to View?
问题 I have an app that have several views. In one view I would like to add a UITabBarController . In another app I used this to add the UITabBarController to the rootViewController , but I am not sure if that is even the correct way to do it. in the .h @property (nonatomic, retain) IBOutlet UITabBarController *tabBarController; in the .m @synthesize tabBarController=_tabBarController; self.window.rootViewController = self.tabBarController; 回答1: In one of my app i have used this code to set