One UIViewController is shared by two Tab Bar Items (i.e., clicking either tab bar item will trigger the same view controller). How can I tell which Tab Bar Item was pressed to trigger the view controller to become active?
One UIViewController is shared by two Tab Bar Item s (i.e., clicking either tab
Share
Ask the
UITabBarControllerabout itsselectedIndexmight help if your tab bar contains 5 or less than 5 tabs. You can also ask theUITabBarControllerabout itstabBar, and ask the tab bar about itsselectedItem.