UITapGestureRecognizer crashes on multiple taps

笑着哭i 提交于 2019-12-05 06:29:15

Sounding strange, I've tested a lot your code, and there is no way, always crashes.

So I simply tried changing name of callback method:

 func didTapOnImagePopup(recognizer: UITapGestureRecognizer) {}

And it works.

I really don't know why and I can find any reasonable explanation.

The only thing that I can think is that should exists an internal function called "initImagePopup".. but it's strange.

I'm really curious on the real explanation, if someone know it.

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