草庐IT

theMoviePlayer

全部标签

ios - 使用 MPMoviePlayerController 时的内存泄漏

在我的项目中,我在不使用Storyboard的情况下手动创建View。我尝试在点击图像时播放视频。它工作正常。但是每次当我点击图像时检查它显示内存泄漏,我已经搜索了很多并应用但没有用。在我的Appdelegate.h文件中:@property(strong,nonatomic)MPMoviePlayerController*theMoviePlayer;@property(strong,nonatomic)UIImageView*image1;在.m文件中:-(void)startPage{....._image1=[[UIImageViewalloc]initWithFrame:CG