When I call setImage the UIImageView resizes:
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil title:(NSString *)t distance:(NSString *)d image:(UIImage *)i{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
name = [t retain];
distance = [d retain];
image = [i retain];
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
[marketImage setImage:image];
}
If the image is larger than the UIImageView the UIImageView resizes. I did not call sizeToFit so I dont know why this would happen. Any reason why I encounter a resize?
Should I uncheck autoresize subviews?