TabBar implementation issue in iphone
- by iPhoneDev
Hi,
My project is navigation based template and it was running fine until I made changes in some child view.
I need to add 4 Tab in some child view. So what I did is create a TabBarController programmatically on ViewDidLoad as:
//
(void)viewDidLoad {
[super viewDidLoad];
helpView = [[HelpView alloc] initWithNibName:@"HelpView" bundle:nil];
settingView = [[SettingView alloc] initWithNibName:@"SettingView" bundle:nil];
tabBarController = [[UITabBarController alloc] init];
tabBarController.viewControllers = [NSArray arrayWithObjects:helpView,settingView,nil];
[self.view addSubview:[tabBarController view]];
}
I am able to add two view in tab bar but not Tab Title. Please let me know what I am missing to display Title on tab button. ( Is a NavigationBased project)
Thanks