は変更されませんAVCaptureDevice focusPointOfInterestが、私はこのコードでIBActionを持っている
- (IBAction)focusInfo {
if (device == nil) {
device = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];
}
NSLog(@"Camera focus point of interest: %d, %d", device.focusPointOfInterest.x, device.focusPointOfInterest.y);
}
これはCustomCameraOverlay上のボタンにconnetedされます。カメラを動かしながらボタンを押しても何も変わりません。コンソールログは常に同じです:
Camera focus point of interest: 0, 1071644672
カメラがフォーカスを変更している間に変更されないのはなぜですか?私が間違っていることは何ですか?プロパティisAdjustingFocusも取得しようとしましたが、変更されていません。
これらのプロパティに対してObserwerを追加したかったのですが、値が変更されない場合はオブザーバが機能しません。