iphone - Emulating the camera apps 'tap to focus' -


I'm trying to emulate the basic functionality of the built-in camera app. So far I have to focus on focus Tap 'on' Tap '

I have a UIView from which I am collecting UITouch events when a single finger is tapped on UIView. This is called the following method but Camera Focus & amp; Exposures are unchanged.

  - (empty) handle focus: (UITT *) touch {if ([camera lockform configuration: zero]) {CGPoint location = [view in touch location: camera view]; If ([camera is FocuspointOf Errative supported]) camera.focusPointOfInterest = location; If ([Camera is ExposurePointOfRemory supported]) camera.exposurePointOfInterest = location; [Camera UnlockFor configuration]; [Camera view animationfone: location]; }}  

The 'camera' is my AVCaptureDevice & amp; Is it non-zero, can anyone tell me where am I wrong?

Clues & amp;

This snippet can help you ... there is a cammeem provided by Apple While allowing you to focus, exposure changes when setting up tapping, flash, swap camera and more, this camera app emits very well to emoticons, not sure that you will be able to find it Because it was part of its WwDc, but if I comment in I leave the email address so I can email the sample code to you ...

  - (zero) focus stop point: (CG point) point {AVCaptureDevice * device = [[Auto Video Input] device ]; If ([Device is FocusPointOnInCort supported] & amp; amp; [Device Hypocus MOD supported: AVCaptureFocusModeAutoFocus]) {NSError * Error; If ([Device Lockforward Configuration: & amp; Error]) [[Device SetfocusPointAffect: Point]; [Device Set Focus: AvcapturefoxSamadAtofocus]; [Device UnlockFor configuration]; } Other {ID representative = [self delegate]; ((Representative representative replies: @Selector (Acquisition with device lockfile always :) :) {[Representative acquisition always with devilokfile: error]; }}}}  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -