Tuesday 15 June 2010

ios - iPhone 5 front camera - tap to focus? -


Using the AVFoundation framework, I've been focused to use this code:

  - (zero) AutofocusPoint: (CG point) point {NSArray * devices = [AVCaptureDevice devices]; (For devices in AVCaptureDevice * device) {[unlockForConfiguration device]; (If [device is lockedForCorrectation: zero]) {If ([device lockforge structure: zero]) (if [[Device is FocuspointErrorIreate supported] & amp; amp; amp; device [FocusMode is supported: AVCaptureFocusModeAutoFocus] Device Set FocusPointOf Interest: Point]; [Device Set Focus: AvcapturefoxSamadAtofocus]; [Device Set ExposurePointOf the Interest: point]; [Tool set Exposure mode: AVCepture exposure modeContinuousAuttextaxer]; [Device Lockforcing: Zero]; }}}}   

}

It should go through both front and rear cameras and focus them. It is known through every device, but for the front camera it does not get before the isFocusPointOfInterestSupported line. But you can tap to focus on the front camera using the iPhone 5. At least you are enabled on the Camera app. So what's the problem ???

Thanks for the help

I do not know whether the iPhone 5 support front Camera is Focus, but according to the official doctor,

The iPhone 4's front camera does not have the focus mode, probably the iPhone 4S either

No comments:

Post a Comment