UIImagePickerController cannot set cameraFlashMode correctly.

For iOS 10 SDK, when I try to set cameraFlashMode of an instance UIImagePickerController, the cameraFlashMode will alway be UIImagePickerControllerCameraFlashModeOff. I think this is a bug.

Demo can be obtained here:

https://github.com/acn001/iOS10UIImagePickerContollerDemo.git

PS: my device is iPhone 6S Plus, OS version is iOS 10 beta 8, and Xcode version is Xcode 8 beta 6.

Replies

You are not the only one, see here: https://forums.developer.apple.com/thread/52055


Let's hope this will be fixed soon.

Note that setting 'cameraFlashMode' *does* work if 'showsCameraControls' is turned on.

But if 'showsCameraControls' is off, 'cameraFlashMode' does not work in iOS 10.0.2