Ian Vink
Ian Vink

Reputation: 68780

UINavigationView - Stop a video from playing when back pressed

I have a UINavigationView where I push on a ViewController containing a WebView with a YouTube video. When the video is run, then the back button is pressed on the UINavigationView, the sound of the video continues to play.

How do I stop the video playing in the WebView when it is no longer visible?

Upvotes: 0

Views: 108

Answers (1)

Randall
Randall

Reputation: 14849

Make sure your web view is getting deallocated when the view controller goes away.

Upvotes: 2

Related Questions