iOS 5 an instance of AVPlayerItem was deallocated

前端 未结 3 412
情话喂你
情话喂你 2021-01-02 22:03

When I try to play a video from my iPhone (located in the documentsDirectory), I get the following error using iOS 5 while it was working fine with iOS 4.3:

An insta

3条回答
  •  执念已碎
    2021-01-02 22:23

    I have had the same error before and simply remove the observer when the view goes away will clear leak.

    Put

    [[NSNotificationCenter defaultCenter] removeObserver:self];
    

    in willWillDisappear or dealloc

提交回复
热议问题