开发者

Stop action in view when uinavigationcontroller clicked back to previous view on iPhone

开发者 https://www.devze.com 2022-12-22 22:39 出处:网络
I have a uinavigationcontroller with 2 views.In the second view I have some audio playing.When I click the back navigation item on the navigation bar the audi开发者_Go百科o still plays.How do I end th

I have a uinavigationcontroller with 2 views. In the second view I have some audio playing. When I click the back navigation item on the navigation bar the audi开发者_Go百科o still plays. How do I end the process of anything happening in the second view when the user clicks back to the initial view.

Thanks for your help.


Use the 2nd view's viewWillDisappear method to stop the music

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号