I'm developing a simple tab bar application for school. It has 3 tabs. One of them plays music in streaming and I would like to stop the music playing when the user changes the tab. Is this possible? and How? Thank you in advance!
2 Answers
Implement the UITabViewController delegate method:
– tabBarController:didSelectViewController:
And you should be able to do what you want. There's also
– tabBarController:shouldSelectViewController:
if you want to know before the tab changes.
1 Comment
Andrew
Do you mean
UITabBarController?