views:

119

answers:

1

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 audio 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.

A: 

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

Mihir Mathuria