我从父类调用这个方法
图像选择器.m
- (void) imagePickerController:(UIImagePickerController *)thePicker didFinishPickingMediaWithInfo:(NSDictionary *)imageInfo
{
UIImage *imag = [imageInfo objectForKey:@"UIImagePickerControllerOriginalImage"];
NSData *imageData = UIImageJPEGRepresentation(imag,0.1);
[parentviewcontroller requestToParentWithImage:imageData];
}
这里 parentviewcontroller 在 imagepicker.h 中声明
@property(strong,nonatomic)UIViewController<SmartretailDelegate> *parentviewcontroller;
任务列表数据.M
IMAG=[IMAGEPICKER alloc]init];
IMAG.parentviewcontroller=self;
我的问题是 parentviewcontroller 没有分配。它在哪里被释放/崩溃?