0
嗨,我有一個窗口和一個tabbar。如何將所有視圖控制器添加到TabBar和窗口。我的代碼是在這裏如何將UITabBarController添加到窗口
UITabBarController *tab = [[UITabBarController alloc] init];
UIViewController *first = [[UIViewController alloc] init];
UIViewController *second = [[UIViewController alloc] init];
UIViewController *third = [[UIViewController alloc] init];
//HOW can i add these view controllers to tabbar and hwo to add tabbar to window...
[self.window makeKeyandVisible];
請幫助..謝謝