Ваш код выглядит хорошо, за исключением утечек, у вас слишком много открывающих скобок и нет закрывающих скобок.
Вы, вероятно, хотите, чтобы это выглядело так:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
if (info) {
[artView removeFromSuperview];
artView = [[UIImageView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
artView.image = [info objectForKey:UIImagePickerControllerOriginalImage];
artView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
artView.contentMode = UIViewContentModeScaleAspectFill;
[self.contentView addSubview:artView];
[artView release];
}
}
UIViewContentModeScaleAspectFill
не должно растягивать изображение. Это должно обрезать это. Возможно UIViewContentModeScaleAspectFit
это то, что вы ищете?