Reputation: 3093
I want to set Front flash with Auto Flash, So front camera doesn't support flash light so that I have to put One view with White color so that its working as flash light, Now my question is that What if User set Flash mode auto ? How to detect that when I have to show flash view ?
Upvotes: 0
Views: 339
Reputation: 761
Your UIImagePickerController has a property called cameraFlashMode.
Note that if you're supporting iOS7, the cameraFlashMode will always give the status as Auto. To solve this, you need to keep the flash mode status as a property.
BOOL isFlashModeOn = self.flashmode == (UIImagePickerControllerCameraFlashModeOn || UIImagePickerControllerCameraFlashModeAuto);
Upvotes: 2