如何在多个用户之间共享核心数据? [英] How to share Core Data between multiple users?

查看:231
本文介绍了如何在多个用户之间共享核心数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为iOS(特别是iPhone)建立一个简单的共享数据库应用程序。该应用程序将允许多个设备上的多个不相关的用户向共享Core Data数据库中添加条目和删除条目,这些条目将由所有用户搜索。 (理想产品)

I am trying to build a simple shared database app for iOS (specifically iPhone for now). The app would let multiple unrelated users on multiple devices add entries to and remove entries from a shared Core Data database that would be searchable by all users. (Ideal product)

我一直在搜索很多关于iCloud + Core Data的信息,但是大多数时候都会遇到很多愤怒的事情。我已经看过Parse,但试图使用AFNetworking(?)时卡住了。其他人告诉我使用亚马逊网络服务,或创建一个简单的PHP网站,我的应用程序发送其数据,或使用载体鸽子与USB棒等等。在兔子洞的某个地方,当尝试使用Cocoapods管理我的库。基本上,我被告知要做很多不同的事情,需要选择一个。

I've been searching a lot about iCloud + Core Data but have mostly come across angry rants about how much it sucks. I've looked into Parse but got stuck when trying to use AFNetworking(?). Others have told me to use Amazon Web Services, or to create a simple PHP website to which my app sends its data, or to use carrier pigeons with USB sticks, etc. Somewhere in the rabbit hole I got stuck when trying to use Cocoapods to manage my libraries. Basically, I've been told to do a lot of different things and need to pick one.

我想一个更具体的问题是:你认为苹果的更改核心数据+ iCloud整合今年(WWDC 2013)意味着我应该尝试他们的方法?

I guess a more specific question would be: Do you think Apple's changes to Core Data + iCloud integration this year (WWDC 2013) mean I should try their approach? Or do they suck sufficiently enough that I should try something else?

我看到这个帖子,但它似乎(?)喜欢它的答案是关于如何共享数据之间应用,而不是在不同设备上的用户之间:在多个用户之间共享核心数据app

I saw this previous post, but it seems(?) like its answer is about how to share data between apps rather than between users on different devices: share core data between many users on app

基本上我不知道我在做什么,希望我能问一个更好的问题。

Basically I have no idea what I'm doing and wish I could ask a better question.

推荐答案

如果要在多个用户之间共享数据,则需要某种在线服务来存储数据。这就是它的全部。它可能是一个服务,提供自己的API(如Parse)或一个你自己(PHP或任何服务器端技术你喜欢)。写自己的不是没有经验的工作;如果你能创建一个,你已经知道该怎么做。

If you want to share data between multiple users, you need some kind of online service you can use to store the data. That's all there is to it. It could be a service that provides its own API (like Parse) or one that you roll your own (PHP or whatever server side tech you prefer). Writing your own is not a job for the inexperienced; if you were in a position to create one, you'd already know what to do.

不同用户之间的共享不是iCloud创建的问题。我不知道苹果的路线图,但这个选项不是现在,我不认为它很可能很快就会出现。使用iCloud与您想要的共享是正交的 - 它可能对某些事情有用,但不是为此。

Sharing between different users is not a problem that iCloud was created to solve. I don't know Apple's roadmap, but this option is not there now and I don't think it's likely to appear anytime soon. Using iCloud is orthogonal to the sharing you want-- it might be useful to you for some things, but not for this.

这篇关于如何在多个用户之间共享核心数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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