有没有办法在UIImagePickerController中显示相机胶卷缩略图(下面用红色标记)? 右图显示了默认的UIImagePickerController与相机源的相似之处。
这就是我展示相机的方式:
func openCamera() {
if(UIImagePickerController .isSourceTypeAvailable(UIImagePickerControllerSourceType.Camera)) {
picker!.sourceType = UIImagePickerControllerSourceType.Camera
picker!.showsCameraControls = true
picker!.cameraDevice = UIImagePickerControllerCameraDevice.Front
self.presentViewController(picker!, animated: true, completion: nil)
} else {
NSLog("No camera")
openGallary()
}
}
This post声称2010年不可能,但我希望有新的时间。