UIPopovercontroller dealloc reached while popover is still visible

前端 未结 3 1711
误落风尘
误落风尘 2020-12-04 09:35

I assure you that I did look for an answer in SO for my question but none of them were helpful. Here I got a simple code that should present a UIImagePickerController<

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 10:00

    When the function exits there are no other reference to the popover controller, so it's deallocated too early.

    Try adding it as a member of your class instead.

    Tim

提交回复
热议问题