Currently I am using ABPeoplePickerNavigationController along with UITabbarController and want to open ABPeoplePickerNavigationController in UITabbarController’s index 2..
So on viewcontroller at index 2, I had written code like this,
-(void)awakeFromNib
{
ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init];
NSMutableArray *newControllers = [NSMutableArray arrayWithArray: [self.tabBarController viewControllers]];
[picker.navigationBar setBarStyle:UIBarStyleBlackOpaque];
[newControllers replaceObjectAtIndex:2 withObject: picker];
[self.tabBarController setViewControllers: newControllers animated: NO];
[picker release];
}
but when I had written this code, suddenly the title of tabbar changed from contacts to Groups and image not showing..
How can we show the title and image for this tabbar as before….
Please help me to solve this problem..
Thanks in advance…
Please write this code in your
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptionsmethod after
[self.window addSubview:tabBarController.view];Happy Coding….