[英]On AlertView App Crash in iOS7
In iOS7.在 iOS7 中。 I am showing a
UIAlertView
and then we get notification which also show UIAlertView
.On clicking UIAlertView
my app is creash in iOS7.我正在显示
UIAlertView
,然后我们收到通知,该通知也显示UIAlertView
。单击UIAlertView
我的应用程序在 iOS7 中崩溃。
it print log它打印日志
-[AddNotification respondsToSelector:]: message sent to deallocated instance 0x14b53e00
It means your memory is deallocated , if you are used any delegate method on that particular VC remove the delegate option so do this这意味着您的内存已被释放,如果您在该特定 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;
}
Option 2选项 2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.