简体   繁体   English

提取用户选择的图像是否需要CloudKit?

[英]Is CloudKit required for fetching user selected images?

I am trying to get the URL of the user selected images. 我正在尝试获取用户选择的图像的URL。 I managed to get it when the image is stored locally in the device. 当图像本地存储在设备中时,我设法将其获取。 However, am still researching on how to get the images path that are stored in the iCloud. 但是,仍在研究如何获取存储在iCloud中的图像路径。

I found a library called CloudKit that is used to upload and download images but from what I also found is that it is like the old Parse, which gives us storage online "Database" to store the images and then retrieve them from there. 我找到了一个名为CloudKit的库,该库用于上载和下载图像,但是从中我还发现它就像旧的Parse,它为我们提供了在线存储“数据库”来存储图像,然后从那里检索它们。 But in my case I want to download the image that is stored in the user's iCloud. 但就我而言,我想下载存储在用户的iCloud中的图像。

My question is, should I enable the CloudKit in order to retrieve the user chosen images from iCloud? 我的问题是,是否应该启用CloudKit以便从iCloud检索用户选择的图像? or is CloudKit meant for different usage? 还是CloudKit用于不同用途? (eg cloud database) (例如云数据库)

NOTE : The comments of the answer in this post confused me. 注意这篇文章中答案的评论使我感到困惑。

CloudKit provides an iCloud hosted database. CloudKit提供了一个iCloud托管数据库。 You can store and retrieve images there but it is not what you need to access existing images on a user's iCloud photo album. 可以在那里存储和检索图像,但这不是访问用户iCloud相册上的现有图像所必需的。 You need to use the Photos Framework for that. 您需要为此使用照片框架

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM