繁体   English   中英

关于 iOS7 中的 AlertView 应用程序崩溃

[英]On AlertView App Crash in iOS7

在 iOS7 中。 我正在显示UIAlertView ,然后我们收到通知,该通知也显示UIAlertView 。单击UIAlertView我的应用程序在 iOS7 中崩溃。

它打印日志

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

这意味着您的内存已被释放,如果您在该特定 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请参考

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM