My app has tab bar controller that loads 3 view controllers in its viewDidLoad method.
- (void)viewDidLoad
{
[super viewDidLoad];
...
[self setViewControllers:@[firstViewController,
secondViewController,
thirdViewController,
]];
}
I want it to show up with a view controller (homeViewController) that is different from these three controllers. When the tab bar is first loaded none of these three tab bars will be selected. I want to change them by pressing tab bar items and return to home view by pressing navigation left bar button.
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:btnImage
style:UIBarButtonItemStylePlain
target:self
action:@selector(setHomeView)];
How can I show the homeViewController when the tab bar controller is first loaded without added it to tab bar items?