rootview controller in Interface builder?
- by senthilmuthu
hi,
i have done in didapplicationfinishing function
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];
it works fine .suppose if i have Navigation controller in Interface Builder,how can i set initWithRootViewController in Interface builder?