PHAsset:什么是"assetSource"? [英] PHAsset: What is 'assetSource'?
问题描述
我正在枚举PHFetchResult.如果我在返回的PHAsset上执行println,则会得到以下信息:
I am enumerating a PHFetchResult. If I do a println on the PHAssets being returned, I get this:
<PHAsset: 0x178192140> 4CBE5A4F-90BD-438B-954E-6FF1B14538CD/L0/001 mediaType=1/0, assetSource=3, (2448x3264), creationDate=2014-10-15 14:20:12 +0000, location=1, hidden=0, favorite=1
有人知道assetSource=3
位是什么吗?我想尽可能在assetSource上运行一个谓词,但找不到任何有关它是什么或如何访问它的信息.是私人的吗?
Does anyone know what the assetSource=3
bit is? I would like to run a predicate on the assetSource if possible but can't find any information anywhere on what it is or how to access it. Is it private?
推荐答案
assetSource
是私有变量,因此其含义是有目的的不透明.
assetSource
is a private variable, so its meaning is purposefully opaque.
您可以使用谓词从其description
中过滤assetSource
以进一步调查,例如
You could use a predicate to filter on assetSource
from its description
to investigate further, like in this question, but it'd be a purely academic exercise.
这篇关于PHAsset:什么是"assetSource"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!