A pixel-perfect clone of iOS 7's UIImagePickerController, with a few improvements.
MIT License
A pixel-perfect clone of iOS 7's UIImagePickerController
, with a few improvements. I built this because Apple's image picker is difficult to modify. Works on both iPad & iPhone.
Features:
Add pod 'JPSImagePickerController'
to your Podfile.
Drag the JPSImagePickerController
folder into your project and link the MediaPlayer and AVFoundation frameworks to your project.
Just launch it modally and set its delegate:
JPSImagePickerController *imagePicker = [[JPSImagePickerController alloc] init];
imagePicker.delegate = self;
[self presentViewController:imagePicker animated:YES completion:nil];
Its delegate can respond to the following methods:
// Called immediately after the picture was taken
- (void)picker:(JPSImagePickerController *)picker didTakePicture:(UIImage *)picture;
// Called immediately after the "Use" button was tapped
- (void)picker:(JPSImagePickerController *)picker didConfirmPicture:(UIImage *)picture;
// Called immediately after the "Cancel" button was tapped
- (void)pickerDidCancel:(JPSImagePickerController *)picker;
See sample Xcode project for more examples on how to configure.
UIImagePickerController
's flash control. i.e. expanding to see "Auto", "On" & "Off"This project is under the MIT license.