I want to set title to tab item programatically, but it not works. My code is below:
- (IBAction)tab1Click:(id)sender { myTabBarController = [[UITabBarContro
An easy way to do this : In your viewController2 's viewDidLoad method, set self.title = @"MyTitle";
viewController2
viewDidLoad
self.title = @"MyTitle";