【发布时间】:2021-11-04 08:00:00
【问题描述】:
在 iOS 15.0 中运行良好,但升级到 iOS 15.1 后,代码无法运行。
_ = PHLivePhoto.request(withResourceFileURLs: [pairedVideoURL, pairedImageURL], placeholderImage: nil, targetSize: CGSize.zero, contentMode: PHImageContentMode.aspectFit, resultHandler: { (livePhoto: PHLivePhoto?, info: [AnyHashable : Any]) -> Void in
if let isDegraded = info[PHLivePhotoInfoIsDegradedKey] as? Bool, isDegraded {
return
}
DispatchQueue.main.async {
completion(livePhoto, (pairedImageURL, pairedVideoURL))
}
})
有人可以帮忙吗?
【问题讨论】:
-
怎么不起作用?有错误信息吗?与之前的操作系统版本相比,完成处理程序现在返回了什么?
标签: swift photokit phlivephoto