IpadOS 17.4: делегат AVCaptureMetadataOutput не вызывается (qrscanner)IOS

Программируем под IOS
Ответить
Гость
 IpadOS 17.4: делегат AVCaptureMetadataOutput не вызывается (qrscanner)

Сообщение Гость »


I'm encountering an issue with the QR code scanner on my iPad 7th Gen running ipadOS 17.4. While the scanner seems to be functioning normally on the latest iPad 10th Gen (also on ipadOS 17.4), it's not working at all for ipad 7th gen (ipadOS 17.4) on my device.

It's possible that this problem affects other iPad models but for now I've tested just these two models.

Has anyone else experienced similar issues with the QR code scanner? Any suggestions for troubleshooting or a potential fix would be greatly appreciated.

List of tried device: Minor update
I tried to download AVCam project from official documentation of Apple and I confirm that is not working even in their swift project. But the face recognition is working
MetadataOutput

Код: Выделить всё

captureObject = [[AVCaptureMetadataOutput alloc]init]; objectQueue =       dispatch_queue_create("VideoDataOutputQueue", NULL);//dispatch_queue_create("newQueue", NULL); [captureObject setMetadataObjectsDelegate:self queue:objectQueue]; 
I tried to use main_queue where creating the dispatch_queue but not delegating:

Код: Выделить всё

objectQueue =       dispatch_queue_create("VideoDataOutputQueue", NULL);//dispatch_queue_create("newQueue", dispatch_get_main_queue()); 
The problem is that is not delegating nor triggering the method:

Код: Выделить всё

- (void)captureOutput:(AVCaptureOutput *)output didOutputMetadataObjects:(NSArray *)metadataObjects fromConnection:(AVCaptureConnection *)connection {          if (metadataObjects != nil && metadataObjects.count > 0) {                  NSLog(@"%@", [metadataObjects objectAtIndex:0]);                   }     } } 
Current solution : In the meantime, as a precaution, we recommend that users do not upgrade to iOS 17.4.


Источник: https://stackoverflow.com/questions/781 ... -qrscanner
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «IOS»