简体   繁体   中英

On AlertView App Crash in iOS7

In iOS7. I am showing a UIAlertView and then we get notification which also show UIAlertView .On clicking UIAlertView my app is creash in 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

 - (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

enable the Instruments please ref this

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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