我有 ClassA 和子类 ClassB
是否可以将 UIImage 选择器中的图像从 ClassA 传递到 ClassB
NSLog(@"Camera Dismiss Method Reached");
[picker dismissViewControllerAnimated:YES completion:nil];
ClassB.patientImage.image = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
其中“patientImage”是 ClassB 的 UIViewController (IBOutlet) 属性
这是 ClassB.h 中 Patient Image 的属性
@property (nonatomic, strong) IBOutlet UIImageView *patientImage;
但是这样做会给我一个错误“patientImage” not found on object type
非常感谢您的帮助