Address-related UITextContentTypes always behave like UITextContentTypeFullStreetAddress

Originator:Peter.L.Stuart
Number:rdar://28228721 Date Originated:09/09/16
Status:Open Resolved:
Product:iOS SDK Product Version:10.0
Classification:UI/Usability Reproducible:Always
 
Summary:
The following UITextContentTypes behave the same as UITextContentTypeFullStreetAddress:

UITextContentTypeStreetAddressLine1
UITextContentTypeStreetAddressLine2
UITextContentTypeAddressCity
UITextContentTypeAddressState
UITextContentTypePostalCode

Rather than inserting only part of the address string (eg. the city or state name), the entire address string is inserted.

Steps to Reproduce:
1. Create a text field and set its `textContentType` to `UITextContentTypeAddressCity`.
2. Open the maps app and select an address (or do something else that will prompt the system to suggest an address when we return to the text field).
3. Run the app with the text field and make it the first responder.
4. Observe that the address from step 2 is suggested by the keyboard.
5. Tap on the suggestion.

Expected Results:
The city name should be entered into the text field.

Actual Results:
The full address string is entered into the text field.

Version:
iOS 10.0.1 (14A403)

Notes:


Configuration:
iPhone 6S

Attachments:

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!