开发者

MPMoviePlayerController memory management

开发者 https://www.devze.com 2023-02-26 03:32 出处:网络
My iPad app has a main view controller that contains a MPMoviePlayerController instance variable. The actual view contains a number of numbered buttons, and when each button is pressed, I change the c

My iPad app has a main view controller that contains a MPMoviePlayerController instance variable. The actual view contains a number of numbered buttons, and when each button is pressed, I change the contentURL property of the MPMoviePlayerController to load the corresponding movie file. This works very well, but I get a memory warning. Do I need to release the previous m开发者_JAVA百科ovie file before I change the contentURL? If so, how?


MPMoviePlayerController has lot of leaks in the simulator. Deleak on device, maybe there are no leaks.

0

精彩评论

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

关注公众号