I\'m getting an image from the user from the photo gallery, and I want to pass it to a another view...
I\'ve read that I should be able to simply do something like t
I think I found the problem :
In your class secondView, your UIImageView is not connected to the object UIImageView in the nib file.
You should have something like that :
IBOutlet UIImageView *imgView;
To check if the view is correctly connected to the Nib you can do this :
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
[imgView setBackgroundColor:[UIColor redColor]];
}
return self;
}
Your problem is interesting please let me know if it doesn't work I'll check deeper.