Weird SIGABRT (unrecognized selector sent to instance) when using UIAlertView

半世苍凉 提交于 2019-12-04 21:31:15

You are getting this because the object you are sending showAbout: to doesn't respond to that selector. Either you are pointing the the wrong target, or your target's pointer is being changed.

It's tough to say without seeing a little more code. If you are creating the button in IB, you probably don't have your outlets hooked up properly.

Edit: Based on your new code, it looks like your MoveViewController object isn't being retained properly. To get info about the instance you specificed, you can turn on MallocStackLoggingNoCompact the same way you turned on NSZombieEnabled. When you get your error, you can use either

malloc_history INSTANCE_ADDRESS

or

info malloc INSTANCE_ADDRESS

This is a great article for this kind of debugging

http://www.friday.com/bbum/2010/01/10/using-malloc-to-debug-memory-misuse-in-cocoa/

I didn't figure out the cause, but the errors were resolved by moving the views into one XIB.

Thanks anyway.

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