AVFoundation Metadata Object Types

╄→гoц情女王★ 提交于 2019-11-30 14:19:15

Try adding both the input and output to the session before setting the metadata object types.

When you don't have the camera attached to the session yet, availableMetadataObjectTypes will be empty.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!