iPhone 多用户应用程序

发布于 2024-11-26 10:48:32 字数 220 浏览 4 评论 0原文

我正在尝试弄清楚如何使 iPhone 应用程序允许多个用户(已安装该应用程序)在它们之间共享数据。现在,棘手的部分是我不想在我的地方托管服务器(ISP 服务非常差),所以我会选择在线托管解决方案。接下来,通过数据,我理解他们能够,比方说,发布一条评论,该评论对所有其他用户来说都是可读的,并查看其他用户说了些什么。 因此,在我看来,我正在考虑要么拥有一个可以由多个用户同时访问的远程托管文件,要么拥有某种数据库或类似的东西。

I'm trying to figure out how to make an iPhone application allow multiple users (that have it installed) share data among them. Now, the tricky part is that I don't want to host a server at my place (very poor ISP services), so I would opt for an online hosting solution. Next, by data I understand them to be able to, let's say, post a comment that would become readable to all the other users and to see what other users have said.
So, in my mind, I'm thinking of either having a file remotely hosted that could be accessed by multiple users at the same time, or a database of some sort or anything like that.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

宁愿没拥抱 2024-12-03 10:48:32

你没有给我们太多的内容——甚至不清楚你的问题是什么。如果您只是询问如何解决此问题,我建议执行以下步骤:

  1. 明确您希望应用程序执行哪些操作、它将共享哪些数据以及将与谁共享数据。这是您要公开分发的应用程序吗?所有用户是否会共享相同的数据,或者用户组是否会相互共享但不在组外共享?数据有多大,其结构如何?数据的任何部分是否可以随时更改(例如共享文档),或者数据是否会更新(例如短信对话)?

  2. 决定如何托管数据。如果您需要为大量用户提供服务,您将需要某种数据库。如果您需要为大量用户提供服务,您需要确保您的解决方案能够轻松扩展。有许多托管公司提供对 Oracle 或 MySQL 等数据库的访问,这可能足以满足您的目的。或者,您可能想研究一些网络服务选项,例如 Google 和 Amazon 提供的服务。它们相当容易使用,并且具有可以很好地扩展的优点。

  3. 开始工作吧。您可能希望在服务器端工作的同时构建一个非常基本的应用程序版本,以便更容易测试。一旦服务器端正常工作且可靠,您就可以将重点转移回构建应用程序的其余部分。

You haven't given us much to go on -- it's not even clear what your question is. If you're just asking how to go about this, I'd suggest the following steps:

  1. Figure out what, specifically, you want the app to do, what data it will share, and who the data will be shared with. Is this an app that you're going to distribute publicly? Will all users share the same data, or will groups of users share with each other but not outside the group? How big is the data, and how is it structured? Can any part of the data change at any time (like a shared document) or will the data just be updated (like a SMS conversation)?

  2. Decide how you want to host the data. If you'll need to serve a lot of users, you'll want some sort of database. If you'll need to serve a LOT of users, you'll want to make sure that your solution will scale easily. There are lots of hosting companies that provide access to databases like Oracle or MySQL, and that may be enough for your purposes. Or, you might want to look into some of the web services options, such as those offered by Google and Amazon. These can be fairly easy to use and have the advantage that they'll scale very well.

  3. Get to work. You'll probably want to build a very basic version of your app around the same time that you're getting the server side working, so that it's easier to test. Once the server side is working and reliable, you can shift the focus back to building out the rest of your app.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文