iphone - NSNotificationCenter for AddressBook db -
i want identify address book changes in app using nsnotificationcenter how use please me.
i don't understand problem is, if want notified when address book modified externally, use
cferrorref error = nil; abaddressbookref contacts = abaddressbookcreatewithoptions (null, &error); if (contacts != nil) { abaddressbookregisterexternalchangecallback (contacts, addressbookchangedexternally, (__bridge void *)(self) ); } which assumes object implements code (self) implements function (not method)
void addressbookchangedexternally(abaddressbookref abref, cfdictionaryref dicref, void *context)
Comments
Post a Comment