Skip to content

Instantly share code, notes, and snippets.

@danmartyn
Created June 15, 2013 08:20
Show Gist options
  • Save danmartyn/5787379 to your computer and use it in GitHub Desktop.
Save danmartyn/5787379 to your computer and use it in GitHub Desktop.
Show Camera
// setup a picker for the camera
UIImagePickerController *cameraController = [[UIImagePickerController alloc] init];
cameraController.delegate = self;
cameraController.sourceType = UIImagePickerControllerSourceTypeCamera;
cameraController.allowsEditing = YES;
[self presentViewController:cameraController animated:YES completion:nil];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment