Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 NSNotification"CNContactStoreDidChangeNotification"来通知联系人何时更新。但是我怎么才能知道哪些联系人被更新了呢?
"CNContactStoreDidChangeNotification"
文档说_
保存成功后,联系人存储向默认通知中心发布 CNContactStoreDidChangeNotification 通知。如果您缓存任何 Contacts 框架对象,您需要通过它们的标识符或使用最初用于获取它们的谓词重新获取这些对象,然后释放缓存的对象。请注意,缓存的对象是陈旧的,但不是无效的。
来自 ios 9.0文档
如果您缓存获取的联系人、群组或容器,则需要在发布 CNContactStoreDidChangeNotification 时重新获取这些对象(并释放旧的缓存对象)。
This is probably easy for someone more experienced with LINQ and the Lambda expressions in C#. I'm just starting out with them, so I must be missing something.
I have a custom object like