iOS: MPMoviePlayer, remove from its superview
Once added, I would like to know if it is possible to remove a movie player from its superview. I've searched a lot but I haven't fo开发者_Go百科und any solution yet. In particular, I would remove the player when the user tap on end button.
Any suggestions?
Maybe you could use code like this :
[thePlayer.view removeFromSuperview];
[videoPlayer stop];
[videoPlayer removeFromSuperview];
精彩评论