Cannot turn on flash in UIImagePickerController in iOS 10

Originator:greg.cooksey
Number:rdar://28802714 Date Originated:2016-10-17
Status:Open Resolved:Duplicate
Product:iOS SDK Product Version:10.0.1
Classification: Reproducible:Always
 
Summary:
Whenever I try to set a UIImagePickerController's cameraFlashMode property, my setting is ignored, the property remains .Off, and the flash doesn't trigger when I take a picture.

Steps to Reproduce:
1. Create a UIImagePickerController
2. Set its sourceType to .Camera
3. Set its mediaTypes to [ kUTTypeImage ]
4. Set its cameraDevice to .Rear
5. Set its cameraFlashMode to .On

Expected Results:
Reading the UIImagePickerController's cameraFlashMode property should return .On, and taking a picture by calling -takePicture should trigger the flash.

Actual Results:
Reading the UIImagePickerController's cameraFlashMode property returns .Off and taking a picture by calling -takePicture does not trigger the flash.

Version:
iOS 10.0.1 (14A403)

Notes:


Configuration:
iPhone 5

Edit:
I am also seeing this issue on an iPhone 5S running iOS 10.1 beta 3 (14B71), running code compiled with Xcode 8.1 beta 3 (8T47)

Duplicate of 27560011

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!