ios - 使用未解析的标识符 'PHAssetMediaTypeImage'

标签 ios swift mime-types photo phasset

我正在快速使用 PHAsset。 PHAssetMediaTypeImage 未解析。谁能帮忙。

enter image description here

最佳答案

可通过这种方式解析 PHAssetMediaType.ImagePHAssetMediaType.Video

获取所有 Assets ,然后仅获取您需要的范围

    var assets = PHAsset.fetchAssetsWithMediaType(PHAssetMediaType.Image, options: fetchOptions){

}

also check apple documentation

关于ios - 使用未解析的标识符 'PHAssetMediaTypeImage',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39245911/

相关文章:

ios - 当我使用 CocoaPods 时“没有这样的模块”

ios - 应用程序恢复后 URLSession 代表不工作

ios - Sprite 节点位置未通过触摸更新?

Swift - 必须由子类覆盖的类方法

ios - GestureRecognizer 不能动态工作/在额外的类 swift 中工作

java - Jetty 9 FontAwesome 空图标

python - 更正 css.map 文件的 MIME 类型

ios - Google PlacePicker API - 小数点后的地理坐标精度(Swift 3.0)

ios - 在Light模式下获取PKDrawing的图像

javascript - JPlayer - IE 中的媒体错误