0
我正在實施基於分割視圖的應用程序。如何將標籤圖標和標題添加到分割視圖中的標籤項目
我有3個選項卡,用於在我的應用程序中左視圖/根視圖底部的3個根視圖。爲此,我將三個視圖控制器添加到了應用程序刪除的tabbar中。
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
RootViewController *tab1 = [[RootViewController alloc] init];
DashboardViewController *tab2=[[DashboardViewController alloc] initWithNibName:@"DashboardViewController" bundle:nil];
SendUpdatesViewController *tab3=[[SendUpdatesViewController alloc] initWithNibName:@"SendUpdatesViewController" bundle:nil];
NSArray *tabViewArray=[[NSArray alloc] initWithObjects:tab1,tab2,tab3,tabBar, nil];
tabBar=[[UITabBarController alloc] init];
[tabBar setViewControllers:tabViewArray];
self.splitViewController.viewControllers = [NSArray arrayWithObjects:tabBar,_detailViewController, nil];
self.window.rootViewController = self.splitViewController;
[self.window makeKeyAndVisible];
return YES;
}
現在我需要爲這些標籤添加標題圖標和相應的操作。