0
我想從地址簿中獲取所有電話號碼,並且我想要存儲在一個數組中。 對於寫這的代碼,但正在此錯誤在第二行程序接收到的信號:「EXC_BAD_ACCESS」從地址簿中獲取所有電話號碼
ABRecordRef person;
ABMultiValueRef phoneNumberProperty = ABRecordCopyValue(person, kABPersonPhoneProperty);
NSArray* phoneNumbers = (NSArray*)ABMultiValueCopyArrayOfAllValues(phoneNumberProperty);
// CFRelease(phoneNUmberProperty);
NSLog(@"Phone numbers = %@", phoneNumbers);
[phoneNumbers release];
請幫助我什麼是我可以做的改變。 在此先感謝