UIPopoverController dealloc getting called—ARC environment

后端 未结 2 1696
走了就别回头了
走了就别回头了 2021-02-12 14:43

While displaying a popover controller for a second time (after dismissing it and then re-displaying it), I get the following error:

Terminating app due to uncaug

2条回答
  •  忘掉有多难
    2021-02-12 15:10

    If your popover is stored as strong reference, it can't be deallocated. The only possibility when it can be deallocated is in the situation when the object containing the strong reference (self in your example) is also deallocated.

    I think the important question is what are you doing with your views when the popover is visible.

    If you have already checked this, than it must be a framework bug.

提交回复
热议问题