简体   繁体   English

在同一个应用iPhone中的设备之间共享数据

[英]Sharing data between device in same app iPhone

I am planning on making an app on iPhone. 我打算在iPhone上制作应用程序。 Users can take a photo inApp or upload photos from their photo library(photo stream). 用户可以在应用程序中拍照或从照片库上传照片(照片流)。 Once this is done, anyone else with the app should be able to see these photos IN THE APP. 完成此操作后,其他任何拥有应用程序的人都应该能够在应用程序中看到这些照片。 What is the best way to approach this? 解决这个问题的最佳方法是什么? Do i require a server or is there another way to save photos. 我需要服务器还是有其他方法来保存照片。 Do I have to use iCloud for this? 我必须使用iCloud吗? I am under the impression that iCloud is for a single user and not to share information as a server. 我的印象是iCloud是针对单个用户而不是作为服务器共享信息。 Should I change this impression of mine? 我应该改变我的这种印象吗?

Thanks! 谢谢!

You'd need to save the photos to a server somewhere. 您需要将照片保存到某个服务器。 Whenever the app runs on a given device, it'll need to check with the server to see if there are new photos to display. 每当应用程序在给定设备上运行时,它都需要检查服务器以查看是否有新照片要显示。

Your impression of iCloud is correct -- it's for syncing data between a single user's devices, not for sharing data between many users. 您对iCloud的印象是正确的 - 它用于在单个用户的设备之间同步数据,而不是用于在许多用户之间共享数据。

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

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