Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/17.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
Swift iPhone 7Plus深度效果标志在哪里_Swift_Avfoundation - Fatal编程技术网

Swift iPhone 7Plus深度效果标志在哪里

Swift iPhone 7Plus深度效果标志在哪里,swift,avfoundation,Swift,Avfoundation,当我在iPhone库中查看照片时,我可以看到一个名为“深度效果”的标签。这适用于在iPhone 7 Plus上以肖像模式拍摄的照片 iPhone照片应用程序如何知道此照片是否具有深度效果。我查看了出口字段和PhaseSetResource,但什么也没找到 感谢PHAssetCollection类具有检索指定类型和子类型的资产集合的方法 class func fetchAssetCollections(with type: PHAssetCollectionType,

当我在iPhone库中查看照片时,我可以看到一个名为“深度效果”的标签。这适用于在iPhone 7 Plus上以肖像模式拍摄的照片

iPhone照片应用程序如何知道此照片是否具有深度效果。我查看了出口字段和PhaseSetResource,但什么也没找到


感谢

PHAssetCollection
类具有检索指定类型和子类型的资产集合的方法

class func fetchAssetCollections(with type: PHAssetCollectionType, 
                         subtype: PHAssetCollectionSubtype, 
                         options: PHFetchOptions?) -> PHFetchResult<PHAssetCollection>
class func fetchAssetCollections(类型:PHAssetCollectionType,
子类型:PHAssetCollectionSubtype,
选项:PHFetchOptions?->PHFetchResult
它有一个参数
子类型
,是的枚举

并且
phasesetcollectionsubtype
有一个常量
smartalbumdepthefect
,以知道它是否是深度效果照片

一个智能相册,对使用深度效果捕获的所有图像进行分组 兼容设备上的摄像头模式


EXIF数据不是不能通过从图片中提取的dict访问吗?我推测,如果你得到dict,在某处会有一个“深度效应”标签。抱歉这么含糊,有一段时间没有做EXIF和图像。。。