AVFoundation Metadata Object Types

后端 未结 2 465
感情败类
感情败类 2021-01-02 14:24

I\'m trying to use the AVFoundation to read barcodes with the below code, but I keep getting the error below. Help as to why would be much appreciated. Thanks in advance!

2条回答
  •  忘掉有多难
    2021-01-02 14:57

    This is one of those rare cases where the error message is very useful.

    Call [output availableMetadataObjectTypes] and make sure what you're trying to set is in there. If not, then don't try to set that value.

提交回复
热议问题