我正在获得EXC_BAD_ACCESS
,但XCode并没有指向我一行代码。相反,它指向.m
文件中的函数头,即:
- (void)imagePickerController:(UIImagePickerController *)picker
didFinishPickingMediaWithInfo:(NSDictionary *)info {
为什么在所有地方都有?它是否设法确定它应该将对象发送到该类的对象,但该对象是否已取消分配?
堆栈跟踪的顶部是:
#0 0x02c2a09b in objc_msgSend ()
#1 0x0032face in -[FDTakeController imagePickerController:didFinishPickingMediaWithInfo:] (self=0x1449cbd0, _cmd=0x1cc2439, picker=0x13d6b670, info=0x13de6710) at /Users/csaftoiu/iPhone Dev/Proj/libs/FDTake/FDTakeController.m:239
#2 0x018f3e3e in -[UIImagePickerController _imagePickerDidCompleteWithInfo:] ()
#3 0x14940d11 in PLNotifyImagePickerOfImageAvailability ()
答案 0 :(得分:1)
不一定是错误在方法名称中,而是在该方法中。你在imagePickerController
内调用任何方法吗?如果是这样,通常是由该项目不再存在并且已设置为nil;