I created a UIImageView with the correct size in the interface builder and included the output in the class file. How can I stop a large jpg from filling the entire screen? I want the image to resize to fit the frame I made in IB.
- (void)viewDidLoad { NSString *filePath = [[NSBundle mainBundle] pathForResource:@"wine" ofType:@"jpg"]; NSData* data = [NSData dataWithContentsOfFile:filePath]; if(data){ photo.image= [[UIImage alloc] initWithData:data]; } [super viewDidLoad]; }
THANKS.
DD
source share