2013-03-20 91 views

回答

0

你有接觸

NSArray *allPeople = ((__bridge_transfer NSArray *)ABAddressBookCopyArrayOfAllPeople(addresbook)); 

for (int i = 0; i < allPeople.count; i++) { 
    ABRecordRef *person = (ABAddressBookRef *)[allPeople objectAtIndex:i]; 

    NSDate *creationDate = ((__bridge_transfer NSDate*)ABRecordCopyValue(person, kABPersonCreationDateProperty)); 
    NSLog(@"Creation date: %@ of entry: %@", creationDate, person); 
} 
+0

但會發生什麼老號在地址簿 – 2013-03-20 15:34:36

+0

已經存儲你是什麼意思的創建日期財產?哪個舊號碼?誰儲存舊號碼? – Mert 2013-03-20 15:40:34

+0

我想要存儲在我的i​​phone 所有數字的時間戳所以我可以根據我保存他們的時間排序數字。 – 2013-03-21 07:50:18