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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -