3

iPhone apps are great for managing or viewing small elements of data however doing mass and/or long data entry or typing is a pain.

For apps that need to have longer dynamic data that can be used on the iPhone but more easily created at the desktop, what sort of options exist for getting data from the desktop to the iPhone app? Are webservices about the only real option? What other simple solutions exist? Like to find a simplified way for moving data back and forth between iPhone and desktop (Windows and Mac)

4

2 回答 2

2

一种选择是将设备转入网络服务器,并允许桌面应用程序直接上传到设备,从而避开第三方服务器的必要性。

查看CocoaHTTPServer以实现 iPhone Web 服务器,它支持下载和上传文件或数据、POST 和身份验证。您可以使用设备的 IP 地址直接连接到设备,或http://iphone.local在某些情况下使用。

于 2009-03-15T14:53:42.647 回答
1

我认为简短的回答是肯定的,唯一明智的选择是网络服务。没有可以使用的 iTunes 同步插件,因此您的选项都是基于网络的。

除了 web 服务,您可能还想考虑一个客户端程序,您的 iPhone 应用程序可以使用 Bonjour 找到并连接到该程序。这里明显的缺点是您必须编写客户端应用程序(最好是两个,一个用于 Windows,另一个用于 Mac)并教育您的用户如何下载和安装它们。此外,您还强迫您的用户使用 WiFi 进行同步。

希望下周发布的 iPhone 3.0 包含 iTunes 同步插件...

于 2009-03-15T13:43:40.460 回答