Check which camera is currently in use in iOS Application
问题 I'm writing an app which has a custom made view for taking photos with the Camera, similar to Apple's AVCam. In it, I want to make a button disappear and re-appear for the flash icon every time the camera is switched. IE When using the front camera, the flash button shouldn't be there and when using the back it should! My code for this at the moment is: AVCaptureDevicePosition position = [[videoInput device] position]; if (position == AVCaptureDevicePositionBack) { self.flashButton.hidden ==