PHAsset:什么是"assetSource"? [英] PHAsset: What is 'assetSource'?

查看:133
本文介绍了PHAsset:什么是"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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆