Release MPMoviePlayer when using a tabbarcontroller?

If you really want to release MPMoviePlayer at tab switch, then do it in viewWillDisappear or viewDidDisappear Now it's left alive at background, as you described. When you come back to tab, you try to create it again.

If you really want to release MPMoviePlayer at tab switch, then do it in viewWillDisappear or viewDidDisappear. Now it's left alive at background, as you described. When you come back to tab, you try to create it again.

Difficult to say what would be the exact reason for crash, there seems to be several possibilities. Next time write a "Why did this crash" question with a call stack. Maybe you could think about just pause/resume, so you wouldn't need to reallocate new moviePlayer every time user changes tabs?

Do alloc/release in viewDidLoad and viewDidUnload, but play/pause in viewWillAppear and viewWillDisappear.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions