0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

iOS17から追加されたQRコードの既存への影響について

Posted at

iOS17から
AVCaptureMetadataOutputObjectsDelegate
のcaptureOutputから渡されるオブジェクトに
AVMetadataHumanFullBodyObject
が追加されています

下記のような実装であれば今まで通り問題ありませんが
決め打ちで処理している場合は注意が必要です

 for (AVMetadataObject *metadata in metadataObjects) {
        
    if (![metadata isKindOfClass:[AVMetadataMachineReadableCodeObject class]]) continue;
    NSString *data = [(AVMetadataMachineReadableCodeObject *)metadata stringValue];
    NSString *type = metadata.type;
    // do something
}       
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?