Crash/SIGABRT when I try to present a UIPopoverController

蓝咒 提交于 2019-11-30 18:36:08

I am assuming you are using ARC as I had this same issue. You have to hold on to the popup you have created otherwise its retain count will be decreased and it will be released when you get to the end of the methods scope.

So create a property and synthesise it until you no longer need it and remove it from screen, the set it to nil after it has been removed.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!