I have 2 tabs in my TabBar. They both hold instances of the same UITableViewController
.
The hierarchy goes
UITabbarController
> UINavigationController
> UITableViewController
From within the tableViewController I'd like to determine which tab is currently selected. I know I can use the selectedIndex
property of the UITabBarController
I just don't know the easiest way to refer to if from within the current viewController. Do I walk up through the superviews of each view to find the TabBarController?