1

我得到了一个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 ()
4

1 回答 1

1

不一定说错误出在方法名称中,而是在该方法中。您是否从内部调用任何方法imagePickerController?如果是这样,通常是由该项目不再存在并已设置为零引起的;

于 2013-10-18T21:10:10.367 回答