以编程方式将联系人从 Outlook 导入到 iPhone

发布于 2024-10-19 07:33:48 字数 100 浏览 2 评论 0原文

我想知道是否可以通过代码将联系人从outlook导入到iPhone。我想实现一个同步功能,用户可以将联系人从 Outlook 导入到 iPhone 中。如果是这样,那么必须遵循什么方法。

I want to know if it is possible to import contacts from outlook to iPhone through code. I want to implement a sync functionality in which a user can import contacts from their Outlook into their iPhones. If so then what approach has to be followed.

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

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

发布评论

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

评论(2

难得心□动 2024-10-26 07:33:48

有两种同步模式。

  1. 通过 iTunes 和桌面。据我所知,我认为不可能以编程方式调用 iTunes 并使其同步,而它应该是这样的。因此,没有什么可做的了。

  2. 如果您希望与现有的 MS Exchange 服务器帐户同步,那么没有太多选择,只能实施 这个答案似乎指出了。

然而,如果你幸运的话,你也许可以通过一些戳戳让它工作
- 与 IMAP 相关。有一些库您可以重新利用。不幸的是,至少我不知道,目前还没有直接的解决方案来实现这一目标,这可能是最简单的途径。其中一个库是:Remail。另一点要记住的是,一些 c libs 也可能支持 iphone/cocoa,留意其中一些并不是一个坏主意。

祝你好运。

There are two modes of sync.

  1. Through iTunes and the desktop. To my knowledge, I dont think its possible programmatically to invoke iTunes and make it sync, as it rightly should be. So, there is not much left to do there.

  2. If you are looking to sync with an existing MS Exchange server account, then there are not many choices out there but to implement the way this answer seems to point out.

However, if you are bit lucky, you might be able to get it to work with a bit of poking
-around with IMAP. There are are a few libraries out there that you could possibly repurpose. Unfortunately, there are no straight forward solutions, that atleast i kno of, for achieving this as yet and this could possibly be the easiest route. One such lib is : Remail. Another point to remember is that some c libs may also support iphone/cocoa and its not a bad idea to watch out for some of them.

Good luck.

烟若柳尘 2024-10-26 07:33:48

根据您使用的 Outlook 版本及其连接的电子邮件服务器,情况会有所不同。我假设您没有连接到交换服务器,并且您不想使用 iTunes,因此将联系人获取到 iPhone 的最佳选择是使用桌面应用程序,该应用程序连接到网络服务,然后与 iPhone 同步可以将联系人转储到地址簿中的应用程序。您必须为您的 Outlook 版本编写一个导出器(2003、2007、2010、2011 仍然广泛使用),因此让您的用户打开 Gmail 帐户,然后使用它将联系人推送到电话。

这可能看起来很复杂,但同步联系人的唯一官方方法是通过 iTunes、icloud、active sync 或 google sync。我可能只是无法理解你为什么要在这里重新发明轮子,所以也许你可以解释更多你在这里尝试做的事情。

Things are going to be different depending on which version of outlook you are using and the email server that it is connecting to. I am assuming that you are not connecting to an exchange server and that you dont want to use iTunes so your best bet to get the contacts to an iPhone is going to be a desktop app that connects to a webservice that will then sync with an iPhone app that can dump the contacts into an address book. You will have to write an exporter for your version of outlook (2003, 2007, 2010, 2011 are all still widely used) so it may just be easier to have your user open a gmail account and then use it to push the contacts to the phone.

It may seem convoluted and but the only official ways to sync your contacts are going to be through iTunes, icloud, active sync or google sync. I may just be having trouble understanding why you are trying to reinvent the wheel here so perhaps you could explain more of what you are trying to do here.

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