我有一个UITableview。当选择一行时,会弹出一个UIActionSheet。要添加UIActionSheet我用UIActionSheet上的iOS App craches
[actionSheet showFromRect:cell.bounds inView:cell animated:NO];
一切工作正常,我可以选择在UIActionView项目,我可以挖掘之外,它消失。但是当它消失时(从点击外部或选择一个项目),我快速点击其他东西,例如背景,应用程序崩溃与以下消息:
-[UIActionSheet _dismissForTappedIndex:]: message sent to deallocated instance 0x173796d0
我猜应用weants驳回片,但它已被释放之前?感谢您的任何帮助。
你是使用Xcode 6编译iOS8吗?你在打什么代表方法?例如,您是否使用clickedButtonAtIndex方法? – 2014-11-21 15:18:54
是的,我。我试过** willDismissWithButtonIndex **和** didDismissWithButtonIndex **,但没有成功。 – Sven 2014-11-21 15:57:27