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