在iOS7中的AlertView应用程序崩溃

时间:2015-07-03 08:39:08

标签: ios objective-c iphone

在iOS7中。我正在显示UIAlertView,然后我们会收到通知,其中也会显示UIAlertView。点击UIAlertView我的应用程序会在iOS7中闪现。

打印日志

-[AddNotification respondsToSelector:]: message sent to deallocated instance 0x14b53e00

1 个答案:

答案 0 :(得分:1)

这意味着您的内存已被释放,如果您使用该特定VC上的任何委托方法删除委托选项,请执行此操作

 - (void)dealloc
{

for example if you are used any tableview or else ...

//if you have any table views these would also need to be set to nil
self.tableView.delegate = nil;
self.tableView.dataSource = nil;
}

选项2

启用Instruments,请参考this