Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/105.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 使用未解析标识符';元数据项';_Ios_Swift3_Avfoundation - Fatal编程技术网

Ios 使用未解析标识符';元数据项';

Ios 使用未解析标识符';元数据项';,ios,swift3,avfoundation,Ios,Swift3,Avfoundation,我从Xcode收到一条消息: 使用未解析标识符“metadataItems” 但是,根据文档,该函数应该是这样工作的: 我需要帮助, 感谢这是AVMetaDataItem类上的一个方法,因此要调用它,您需要执行以下操作: let items = AVMetaDataItem.metadataItems(from:from, withKey:AVMetadataCommonKeyDescription, keySpace: AVMetadataKeySpaceCommon) let items

我从Xcode收到一条消息: 使用未解析标识符“metadataItems”

但是,根据文档,该函数应该是这样工作的:

我需要帮助,
感谢这是
AVMetaDataItem
类上的一个方法,因此要调用它,您需要执行以下操作:

let items = AVMetaDataItem.metadataItems(from:from, withKey:AVMetadataCommonKeyDescription, keySpace: AVMetadataKeySpaceCommon)
let items = AVMetaDataItem.metadataItems(from:from, withKey:AVMetadataCommonKeyDescription, keySpace: AVMetadataKeySpaceCommon)