How to get the newly added contact id using CNContactStoreDidChangeNotification?

I want to get a new new contact id.

Here is my code:

-(void)viewWillAppear:(BOOL)animated { [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(addressBookDidChange:) name:CNContactStoreDidChangeNotification object:nil]; } -(void)addressBookDidChange:(NSNotification*)notification { //Handle event here... NSDictionary *dict = notification.userInfo; NSLog(@"Notification - %@",dict); } 

CNNotificationSaveIdentifiersKey array is always empty.

  Notification - { CNNotificationOriginationExternally = 1; CNNotificationSaveIdentifiersKey = ( ); CNNotificationSourcesKey = ( ); } 
+7
ios cncontact
source share

No one has answered this question yet.

See related questions:

1665
How can I make UITextField move up when there is a keyboard - when editing starts?
one
NSNotificationCenter notifications not received by a UIView subclass
one
NSNotificationCenter, type memory address
one
Embed network error alerts in my application? Can't make it work?
one
don't get the correct current google map sdk iOS address
0
On which ViewController should I implement the FacebookSDK removeObserver?
0
A specific expression in an if condition causes a 7 second delay in execution
0
How to detect a change in device orientation on an iPad iOS 9+ when the lock is set externally?
0
Changing views continues to give me an attempt to present vc1 to vc whose view is not in the window hierarchy
0
iOS: Unexpected resubmit request in AFNetworking

All Articles