是 iOS 7 的 UIImagePickerController
的像素级复制品,带有一些改进。由于 Apple 的图像选择器难以修改,所以我创建了它。适用于 iPad 和 iPhone。
特性
将 JPSImagePickerController
文件夹拖动到您项目中,并将 MediaPlayer 和 AVFoundation 框架链接到您的项目中。
只需按模式调用它并设置它的代理
JPSImagePickerController *imagePicker = [[JPSImagePickerController alloc] init];
imagePicker.delegate = self;
[self presentViewController:imagePicker animated:YES completion:nil];
它的代理可以响应以下方法
// 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;
查看示例 Xcode 项目的更多配置示例。
UIImagePickerController
的闪光灯控制。即展开以查看“自动”、“开”和“关”此项目采用 MIT 许可。