Email Property returns nil value when accessing Address Book in iOS 7
| Originator: | rileytestut | ||
| Number: | rdar://14437084 | Date Originated: | 7/13/13 |
| Status: | Opened | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 7 Beta 2 + 3 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: When creating an ABAddressBookRef reference and enumerating through it, you should be able to access the emails of all contacts. However, under iOS 7, copying the email property via ABRecordCopyValue and passing in the key kABPersonEmailProperty returns a nil value. Steps to Reproduce: 1) Create an instance of ABAddressBookRef 2) Create an array of records from the address book via ABAddressBookCopyArrayOfAllPeople() 3) Enumerate through the records and try to print the emails of each person Expected Results: Should return a ABMultiValueRef for each record, with which you can enumerate through to get all emails. Actual Results: Returned ABMultiValueRef is nil Regression: Works just fine in iOS 6 Notes: Attached is an example app to demonstrate the issue.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!