Skip to content

Instantly share code, notes, and snippets.

@ChrisRisner
Created December 19, 2012 05:15
Show Gist options
  • Save ChrisRisner/4334552 to your computer and use it in GitHub Desktop.
Save ChrisRisner/4334552 to your computer and use it in GitHub Desktop.
iOS Day 22
-(void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];
[self.imageView setImage:image];
[self dismissViewControllerAnimated:YES completion:nil];
}
@interface ViewController : UIViewController <UIImagePickerControllerDelegate>
- (IBAction)tappedGetPhoto:(id)sender;
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment