Skip to content

Instantly share code, notes, and snippets.

@Blankwonder
Created March 28, 2011 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Blankwonder/890148 to your computer and use it in GitHub Desktop.
Save Blankwonder/890148 to your computer and use it in GitHub Desktop.
- (void) imagePickerController: (UIImagePickerController *) picker
didFinishPickingMediaWithInfo: (NSDictionary *) info {
UIImage *image = (UIImage *) [info objectForKey:
UIImagePickerControllerOriginalImage];
NSArray *imageArray = [NSArray arrayWithObject:image];
NSMutableDictionary *sendSessionInfo = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"ItemType", @"Photo", @"ImageArray", imageArray, nil];
[[picker parentViewController] dismissModalViewControllerAnimated: YES];
[picker release];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment