我在Tabbar控制器中有超过6个ViewController,因此它将在moreViewcontroller Tableview中显示2个选项卡 现在我不知道如何为这个2标签添加图像项和标题??
以下是我的标签栏实施的代码
NSArray *arrayVC=[[NSArray alloc]initWithObjects:objNewsFeedNavi,objReqNavi,objMsgNavi,objNotificationNavi,objProfileNavi,objChatNavi, nil];
[self.objTb setViewControllers:arrayVC];
UITabBarItem *itemNewsFeed=[self.objTb.tabBar.items objectAtIndex:0];
itemNewsFeed.title=@"News Feed";
itemNewsFeed.image = [[UIImage imageNamed:@"Newsfeed.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
UITabBarItem *itemReq=[self.objTb.tabBar.items objectAtIndex:1];
itemReq.title=@"Request";
itemReq.image = [[UIImage imageNamed:@"request.jpg"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
UITabBarItem *itemMsg=[self.objTb.tabBar.items objectAtIndex:2];
itemMsg.title=@"Messenger";
itemMsg.image = [[UIImage imageNamed:@"messenger.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
UITabBarItem *itemNotification=[self.objTb.tabBar.items objectAtIndex:3];
itemNotification.title=@"Notification";
itemNotification.image = [[UIImage imageNamed:@"notificationBlue.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
UITabBarItem *itemProfile=[self.objTb.tabBar.items objectAtIndex:4];
itemProfile.title=@"Profile";
itemNotification.image = [[UIImage imageNamed:@"profile.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];