Move to view controller without clicking on Tab Bar Item representing it

I have a TabBarController having 3 viewcontrollers in it (namely VCa, VCb, VCc) and at VCa the tabbar is set as hidden.
Now whenever we tap(using UITapGestureRecognizer) the view at VCa, what should be the selector method to be implemented in order to view another ViewController (either VCb or VCc).

“At viewdidLoad of VCa”

[self.tabBarController.tabBar setHidden:YES];
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapmethod)];
[self.view addGestureRecognizer:tap];

// code to be written in order to show VCb(or any other ViewController in same TabBarController)

Source: ios

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.