TabBar implementation issue in iphone

Posted by iPhoneDev on Stack Overflow See other posts from Stack Overflow or by iPhoneDev
Published on 2010-05-12T06:07:40Z Indexed on 2010/05/12 6:14 UTC
Read the original article Hit count: 273

Filed under:

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

© Stack Overflow or respective owner

Related posts about iphone