如何在iOS应用程序中解决崩溃问题

时间:2014-07-09 11:09:51

标签: ios iphone crash-reports symbolicatecrash crash-log

当我测试我的iOS应用程序时,它会在某些时候崩溃。崩溃日志如下可以任何人请告诉我可能是崩溃的原因。如何轻松了解此崩溃日志数据发生崩溃的位置

Thread 0 Crashed:
0   libobjc.A.dylib                 0x0000000192f881d0 objc_msgSend + 16
1   UIKit                           0x0000000189c7b2c8 -[_UIModalItemsCoordinator _notifyDelegateModalItem:tappedButtonAtIndex:] + 120
2   UIKit                           0x0000000189c7b1e8 -[_UIModalItemAlertContentView tableView:didSelectRowAtIndexPath:] + 984
3   UIKit                           0x0000000189b6d794 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1260
4   UIKit                           0x0000000189c2e230 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 236
5   UIKit                           0x0000000189ac246c _applyBlockToCFArrayCopiedToStack + 352
6   UIKit                           0x0000000189a2e4a0 _afterCACommitHandler + 500
7   CoreFoundation                  0x0000000186a330a4 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 28
8   CoreFoundation                  0x0000000186a3032c __CFRunLoopDoObservers + 368
9   CoreFoundation                  0x0000000186a306b8 __CFRunLoopRun + 760
10  CoreFoundation                  0x00000001869716cc CFRunLoopRunSpecific + 448
11  GraphicsServices                0x000000018c655c08 GSEventRunModal + 164
12  UIKit                           0x0000000189aa2fd8 UIApplicationMain + 1152
13  whirlpool-minerva               0x0000000100047834 0x100024000 + 145460
14  libdyld.dylib                   0x000000019356ba9c start + 0

1 个答案:

答案 0 :(得分:2)

在解除警报之前,UIAlertView的代理人已被解除分配。

如果您将某个对象设置为UIAlertView的委托,并且该对象可能在应用程序执行的某个时刻“死亡”(可能是在屏幕上显示警报时),那么您必须设置警报视图{在delegate方法中{1}}属性为nil。您必须保存对创建的警报的引用。

简单示例:

-dealloc
相关问题