I have a UITabBarController that sets 5 tabs that puts on screen an instance of ViewController in which i place the UINavigationController:
UINavigationController *nc = [[UINavigationController alloc]init];
[self.view addSubview:nc.view];
It works perfectly (the tabs and nav-bar), but there was a problem with setting title of a tab onto a bar.
I tried placing self.title = @"something"; in - (id)init and - (void)viewDidLoad – first one did nothing, second changed my title of a tab, not navigation bar.
My question is: where to put my code, or what change should i make?
In your
UIViewController, do this: