我在这里执行这段代码
self.cloudSightQuery = [[CloudSightQuery alloc] initWithImage:imageData
atLocation:CGPointZero
withDelegate:self
atPlacemark:nil
withDeviceId:@""];
self.cloudSightQuery.queryDelegate = self;
[self.cloudSightQuery start];
但是有时它会因以下原因而崩溃
由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[ImageViewController cloudSightQueryDidFail:withError:]:无法识别的选择器发送到实例 0x100514c40”
首先抛出调用堆栈:
我如何能够捕获此错误并向用户显示响应而不是应用程序崩溃?