AVPlayer crashes after multiple playbacks-

前端 未结 2 1633
面向向阳花
面向向阳花 2021-02-05 16:35

I\'m trying to create an app which plays videos from a file using AVFoundation. The videos are shown in a view accessed by tapping on a row in a parent tableview.

2条回答
  •  悲&欢浪女
    2021-02-05 17:09

    You should remove from superview first as it will reduce the retain count by 1 and ARC will take care of the release for your code.

    like this

    [videoView removeFromSuperview];
    [self setVideoView:nil];
    

提交回复
热议问题