iOS中的AddressBook同步 [英] AddressBook synchronization in iOS

查看:84
本文介绍了iOS中的AddressBook同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自上次打开应用程序以来,iOS中是否有任何方式可以获取有关地址簿更改的通知。

Is there any way in iOS to get notification about address book changes since the last time applications was opened.

应用程序将地址簿存储在内部数据库中我想在每次激活时执行完全同步。

The application stores address book in internal database and I don't want to perform full sync each time it activated.

提前致谢。

小额外澄清问题:
我使用ABAddressBookRegisterExternalChangeCallback观察应用程序暂停到后台时的更改,但据我所知,如果应用程序完全关闭并重新打开(例如:电话重启或从任务列表关闭后),此方法无法工作)。

Small addition to clarify the question: I use ABAddressBookRegisterExternalChangeCallback to observe changes when application suspended to background, but from what I know, this method can't work if application was closed completely and reopened(for example: after phone restart or closed from task list).

推荐答案

也许你正在寻找这个:

ABAddressBook参考 - ABAddressBookRegisterExternal ChangeCallback

您应该注册该通知!

告诉我是否有效或是否需要帮助

Tell me if worked or if you need any help

Mário

这篇关于iOS中的AddressBook同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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