i want to send UIImage from one class to another .
In FirstViewController.m i wrote this code
FormViewController *formViewController =[[FormViewController alloc]initWithNibName:@"FormViewController" bundle:nil];
formViewController.userImage=imageFb;
[formViewController.userImage retain];
[self presentModalViewController:formViewController animated:YES];
the error is
Request for member ‘userImage’ is something not a structure or union
In FormViewController.h
@interface FormViewController : UIViewController
{
UIImageView *photo;
UIimage *userImage;
}
@property(retain,nonatomic) UIimage *userImage;
@property(retain,nonatomic) IBOutlet UIImageView *photo;
and i get this error
expected specifier-qualifier-list before UIimage
in FormViewController.m
- (void)viewDidLoad
{
[super viewDidLoad];
[photo setImage:userImage];
}
and the error is
userImage undeclared (first use in this function)
It’s
UIImage, notUIimage.