I am using ABNewPersonViewController to add or edit address person. Some warnings, however, showed blow are always appreared when I tap button Done. The record data saved to system address book successfully, but I still can't understand the warning.
Jul 21 17:58:41 Jerrys-iPhone YouxinClient[2052] <Notice>: (Warn ) [ABLog]: <ABSource.c ABAddressBookCopyDefaultSource:111> Actual default source doesn't exist
Jul 21 17:58:41 Jerrys-iPhone YouxinClient[2052] <Notice>: (Warn ) [ABLog]: <ABSource.c ABAddressBookCopyDefaultSource:118> Failed to fallback to local source as it is not a valid default source
Code like this:
__block ABAddressBookRef pAddressbook = [PublicFunc createAddressBookInstance];
ABRecordRef person = ABAddressBookGetPersonWithRecordID(pAddressbook, self.oneContact._addressPerson.nAddressId);
ABNewPersonViewController *pPicker = [[ABNewPersonViewController alloc] init];
UINavigationController * nav = [[UINavigationController alloc] initWithRootViewController:pPicker];
pPicker.newPersonViewDelegate = self;
pPicker.displayedPerson = person;
[self presentViewController:nav animated:YES completion:^(void){
FreeMemory_CFRelease(pAddressbook);
}];
[pPicker release]; pPicker = nil;
[nav release]; nav = nil;