I have an app that lets the user take a picture with his/her iPhone and use it as a background image for the app. I use UIImagePickerController
to let the user take a picture and set the background UIImageView
image to the returned UIImage
object.
IBOutlet UIImageView *backgroundView;
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo {
backgroundView.image = image;
[self dismissModalViewControllerAnimated:YES];
}
This all works fine.
How can I reduce the size of the UIImage
to 480x320 so my app can be memory efficient?
I don't care if I loose any image quality.
Thanks in advance.