PHAsset(或ALAsset)跨设备标识符 [英] PHAsset (or ALAsset) cross-device identifier

查看:325
本文介绍了PHAsset(或ALAsset)跨设备标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实际上正在创建一个iOS应用程序,并希望在SQLite数据库中存储有关Photo Library图片的一些细节。我还希望能够在用户拥有的不同设备上共享这些数据(想象有人想在他的iPhone上重新组织图片,并希望在他的iPad中检索相同的订单)。

I am actually creating an iOS app, and want to store some details about Photo Library pictures in an SQLite database. I also would like to be able to share this data across the different devices the user has (imagine someone wanted to reorganize pictures on his iPhone, and wants to retrieve the same order in his iPad).

我搜索了Apple文档,但未找到跨设备共享的任何 PHAsset 标识符。我还试图检查 PHImageFileURLKey hashValue localIdentifier PHAsset 在哪里共享,但都不是。

I have searched across the Apple documentation, but did not find any PHAsset identifier that is shared across devices. I also tried to check if the PHImageFileURLKey, hashValue, or localIdentifier of the PHAsset where shared, but none of them are.

有人已经做过这样的事吗?

Has someone already done something like this?

推荐答案

目前没有。 PHAsset在第一个iOS 8 Betas中有一个共享标识符,但后来被删除了。

There is none at the moment. PHAsset had a shared identifier in the first iOS 8 Betas, but it was removed later on.

这篇关于PHAsset(或ALAsset)跨设备标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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