YinZheMin
YinZheMin

Reputation: 23

How can i disable iphone camera auto-flash function?

I want to disable camera flash.

How can I do that?

Any help will be appreciated

Upvotes: 2

Views: 2941

Answers (1)

Pochi
Pochi

Reputation: 13459

If you are setting your camera capture session with AV Foundation:

Tell the AVCaptureDevice to lockForConfiguration, then tell it to setFlashMode

Read the documentation since this is a very simple task.

http://developer.apple.com/library/ios/#DOCUMENTATION/AudioVideo/Conceptual/AVFoundationPG/Articles/00_Introduction.html#//apple_ref/doc/uid/TP40010188

Edit: What you are looking for is explicitly written under the "media capture" section from the link I posted.

Upvotes: 5

Related Questions