如何解决iOS应用程序中的崩溃

如何解决iOS应用程序中的崩溃,ios,iphone,crash-reports,symbolicatecrash,crash-log,Ios,Iphone,Crash Reports,Symbolicatecrash,Crash Log,当我测试iOS应用程序时,它会在某个时候崩溃。下面是崩溃日志,任何人都可以告诉我崩溃的原因。我怎样才能从这个崩溃日志数据轻松地理解崩溃发生在哪里 Thread 0 Crashed: 0 libobjc.A.dylib 0x0000000192f881d0 objc_msgSend + 16 1 UIKit 0x0000000189c7b2c8 -[_UIModalItemsCoordinator _not

当我测试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

在解除警报之前,解除分配
UIAlertView
的委托

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

简单的例子:

@property (nonatomic, strong) UIAlertView *alert;
...
self.alert = [[UIAlertView alloc] initWith... delegate:self ...];
[self.alert show];
...
- (void)dealloc {
    self.alert.delegate = nil;
}

一些实际的代码会很好。但是我猜您的
UITableView
可能有问题,这可能会有所帮助:设置委托属性see。然而,您的问题似乎与如何设置表视图有关——一个错误的委托指针或诸如此类的东西。