如何向 UIImagePickerController 添加一些选项

How to add few options to UIImagePickerController

有办法给 imagePicker sourceType 添加几个选项吗?

imagePicker.sourceType = UIImagePickerControllerSourceType.camera
imagePicker.allowsEditing = true
self.present(imagePicker, animated: true, completion: nil)

这些选项特定于相机应用,无法通过 API 使用。

您应该在 http://bugreport.apple.com 提交增强请求。

imagePicker.showsCameraControls = true.  // use this
imagePicker.modalPresentationStyle = .FullScreen

如果您进行自定义,则可以创建自定义视图

 imagePicker.cameraOverlayView = YourView