imagePicker 标签

UIImagePickerController不走回调的问题

今天又遇到了一个奇怪的问题 代码如下: UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; imagePicker.allowsEditing = YES; imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; imagePicker.delegate = self; [self presentViewController:imagePicker animated:YES completion:nil]; 用法很对,没毛病,可就是不调用 -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<NSString *,id> *)info 分析原因 UIImagePickerController实例对象被释放了 //这不可能....

阅读全文 »