gpt4 book ai didi

ios - PhotoKit 框架 : What is assetSource of PHAsset?

转载 作者:行者123 更新时间:2023-11-29 02:04:29 32 4
gpt4 key购买 nike

当我打印 PHAsset 的描述时,它包括 assetSource=3assetSource=0。 我可以知道这是什么吗assetSource 是什么意思?像 3,0 这样的数字与什么有关?根据我对 assetSource=3 的特定 PHAsset 的观察,其 ALAssetsLibrary defaultRepresentation URL 包括 ext=MOV 和 assetSource = 0 的 PHAsset 其ALAssetsLibrary defaultRepresentation URL 包括 ext=mov。 assets-library URL ext 和 assetSource 是否相关?我请求有人澄清我的问题。

我已经浏览了以下链接 PHAsset: What is 'assetSource'? .但是没有得到澄清。

最佳答案

可能与 iOS9 中即将推出的 PHAssetSourceType 有关。

        struct PHAssetSourceType : OptionSetType { init(rawValue rawValue: UInt)
static var TypeNone: PHAssetSourceType { get }
static var TypeUserLibrary: PHAssetSourceType { get }
static var TypeCloudShared: PHAssetSourceType { get }
static var TypeiTunesSynced: PHAssetSourceType { get }
}

引用https://developer.apple.com/library/prerelease/ios/documentation/Photos/Reference/PHAsset_Class/index.html#//apple_ref/swift/struct/c:@E@PHAssetSourceType

关于ios - PhotoKit 框架 : What is assetSource of PHAsset?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29936512/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com