ABPeoplePickerNavigationController.displayedProperties displays a contact's image to the user but not to app
| Originator: | alexisgallagher | ||
| Number: | rdar://18094971 | Date Originated: | 2014-08-21 |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | iOS8beta6 |
| Classification: | bug | Reproducible: | always |
Summary: The property ABPeoplePickerNavigationController.displayedProperties can be used to configure the ABPeoplePickerNavigationController to display only certain properties of Address Book contacts to the user, for selection. The selected property is then returned to the client app via a delegate method. The documentation says that name properties are always displayed. They are also always returned to the client app. However, in fact, the contact's photo is also always displayed to the user. But the contact's photo is returned to the client app only when displayedProperties is not set at all. The problem: there is no way use displayedProperties and also get access to the contact's photo. You cannot add the photo to the list of displayedProperties list (since it is not technically a property), and if you do put anything in displayedProperties then the photo is excluded. This is inconsistent. Either: (1) the contact's photo should always be displayed and always accessible to the app, like the name property; or (2) it should be possible to include the contacts photo in the displayedProperties, like other properties, and then should govern both if it is visible to the user and if it is accessible to the app. Steps to Reproduce: 1. Run the included modified version of the WWDC2014 sample app, on a device with a populated address book. 2. select tab 3. 3. note that whether or not contact image data was accessible depends on whether or not displayedProperties was set in AAPL_8or7_PersonPickerViewController Expected Results: expect to be able to access contact image data Actual Results: cannot access contact image data Version: iOS8 Notes: Configuration: iPod Touch Attachments: 'PeoplePickerPickingaPersonorProperty_modified.zip' was successfully uploaded.
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!