Created
November 28, 2014 11:54
-
-
Save kdxu/7eeb10d7971c8e2223b0 to your computer and use it in GitHub Desktop.
This file contains 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{ | |
// Pathを取得 | |
UIImage *pickedImage = (UIImage *)[info objectForKey:UIImagePickerControllerOriginalImage]; | |
if (pickedImage) { | |
NSData *data = [[NSData alloc] initWithData:UIImagePNGRepresentation(pickedImage)]; | |
[DBAccess updatePic:@{@"cl_id":[NSString stringWithFormat:@"%d",cl_id], @"pic":data}]; | |
} | |
// モーダルビューを閉じる | |
if (![_cameraviewcontroller.presentedViewController isBeingDismissed]) { | |
[_cameraviewcontroller dismissViewControllerAnimated:YES completion:nil]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment