簡體   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