Created
December 19, 2012 05:15
-
-
Save ChrisRisner/4334552 to your computer and use it in GitHub Desktop.
iOS Day 22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info | |
{ | |
UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage]; | |
[self.imageView setImage:image]; | |
[self dismissViewControllerAnimated:YES completion:nil]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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