Simple problem, I have defined a UIImageView, called bigImageView
in a UIViewController using the storyboard,
It's declared in the h file of that UIViewController as follows:
@property (retain, nonatomic) IBOutlet UIImageView *bigImageView;
on my appDelegate
I init the UIViewController as follows:
imageViewController = [storyboard instantiateViewControllerWithIdentifier:@"chosenImageController"];
this calls initWithCoder on my UIViewController m file:
-(id)initWithCoder:(NSCoder *)aDecoder
{
self = [super initWithCoder:aDecoder];
if (self) {
// Custom initialization
}
return self;
}
This function is only called once so there's no double init.
However, later, when I check my bigImageView
pointer, it's still nil.
Isn't the init supposed to allocate memory to it? I think that's why when I try to set this UIImageview to hold a UIImage it doesn't display the image Thanks