Weird crash in ABPeoplePicker

☆樱花仙子☆ 提交于 2019-12-02 09:18:13

Turns out this is an actual bug. If you do a double ModalVC dismiss to ABPeoplePicker when the user clicks a person in search, you'll get this crash. Fortunately, there's a simple workaround: return YES in your delegate's shouldContinueAfterSelectingPerson. As you're simultaneously dismissing the picker, it doesn't really matter whether you return YES or NO, it won't continue, but NO will crash and YES doesn't.

Run with NSZombieEnabled and I suspect you will replace the assertion failure with an error that some object is being accessed after it has been released.

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