hello guys!
here is my code for retrieving birthdate from addressbook:
Code:
...
ABRecordRef person = CFArrayGetValueAtIndex(people,i);
NSDate *date = (NSDate *)ABRecordCopyValue(person, kABPersonBirthdayProperty);
..
where
Code:
CFMutableArrayRef people;
was created as follows:
Code:
...
ABAddressBookRef addressBook = ABAddressBookCreate();
CFArrayRef peopleArray = ABAddressBookCopyArrayOfAllPeople(addressBook);
people = CFArrayCreateMutableCopy(kCFAllocatorDefault,CFArrayGetCount(peopleArray),peopleArray);
...
but i still get
nil in
date. i really don't know how to deal with it. please help=)