Я хочу получить все новые добавленные идентификаторы контактов.
Вот мой код:
-(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 всегда пуст.
Notification - {
CNNotificationOriginationExternally = 1;
CNNotificationSaveIdentifiersKey = (
);
CNNotificationSourcesKey = (
);
}