enablesReturnKeyAutomatically ignored when pasting into a UISearchController's UISearchBar

Originator:greg
Number:rdar://22774460 Date Originated:20-Sep-2015 02:37 PM
Status:Open Resolved:
Product:iOS SDK Product Version:Xcode 7.0 (7A220)
Classification:UI/Usability Reproducible:Always
 
Summary:
Pasting text into a UISearchController does not enable the return key on the keyboard in a UISearchController's UISearchBar. Essentially, enablesReturnKeyAutomatically is ignored, as this property should be YES by default.

Steps to Reproduce:
1. Let UISearchBar of a UISearchController become first responder.
2. Paste text into UISearchBar
3. Press Search button on keyboard

Expected Results:
Search button is enabled.

Actual Results:
Search button is disabled.

Notes:
Project attached. "Paste Me!" is added to pasteboard and focus on UISearchBar is set automatically. Simply long-press and paste. Search button is disabled.

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!