I'm working on a radio streaming app with 2 UITabBarController buttons at the bottom of the app. One for Live Streaming and one for Top 40 list.
I'm using a common StreamingViewController for both the tabs. But depending on the tab selected - a different url needs to be passed to the StreamingViewController so that it can play the appropriate feed.
So how can i determine the active tab ?
Did you even look at the documentation? tabBarController.selectedIndex
will give you the index of the selected tab, and tabBarController.selectedViewController
will give you a pointer to the view controller at the active tab.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With