I have 3 UIImageViews for which I want to load an image. For 1 image this is not a problem, but how do I scale to 3? The code below is what I have right now.
-(IBAction) getPhoto:(id) sender { UIImagePickerController * picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum; [self presentModalViewController:picker animated:YES]; } - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { [picker dismissModalViewControllerAnimated:YES]; UIImage* image = [info objectForKey:UIImagePickerControllerOriginalImage]; [my_image_1 setImage:image forState:UIControlStateNormal]; }
UIImageViews? If that's so then just dosetImage:forState:for all your image views, not just for the first one.