I'm trying to change the tab in my Tabbar
dynamically.
I've added a class for UITabBarController
.
In the first Tab controller I've placed a button and on click i want to switch to the third tab at runtime.
I'm an absolute beginner so I'm not sure how this works
On click of the button I'm using
[self.tabBarController selectedIndex:2]
But i'm getting an error that says:
No visible interface declares the selector 'selectedIndex'