Iphone Interface builder中的rootview控制器?
我已经完成了DID应用程序的完成功能Iphone Interface builder中的rootview控制器?,iphone,Iphone,我已经完成了DID应用程序的完成功能 tabBarController = [[UITabBarController alloc] init] ; tabBarController.navigationItem.title = @"News"; SimpleTableViewController *rtbfViewController = [[SimpleTableViewController alloc] init];
tabBarController = [[UITabBarController alloc] init] ;
tabBarController.navigationItem.title = @"News";
SimpleTableViewController *rtbfViewController = [[SimpleTableViewController alloc]
init];
//initWithStyle:UITableViewStyleGrouped];
rtbfViewController.tabBarItem.title = @"News1";
rtbfViewController.tabBarItem.image = [UIImage imageNamed:@"home.png"];;
UINavigationController *table2NavController = [[[UINavigationController alloc] initWithRootViewController:rtbfViewController] autorelease];
[rtbfViewController release];
它工作正常。假设我在Interface Builder中有导航控制器,如何在Interface Builder中使用RootViewController设置init?是的,您肯定可以使用Interface Builder实现这一点