255726 UITextField's UITextInputMode Reports Wrong Primary Language
| Originator: | fran | ||
| Number: | rdar://34255726 | Date Originated: | 5-09-2017 |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | Xcode 9 Beta 6 |
| Classification: | Serious Bug | Reproducible: | Always |
Area: UIKit Summary: For UITextField with decimal pad, textInputMode should return current device's language. Instead, it returns "en-US" all the time. Steps to Reproduce: Change your device or simulator language to other than English. Let's say Spanish. Create a UITextField and give it the decimal pad keyboard type. Expected Results: textfield's textInputMode.primaryLanguage should return "es-ES" Actual Results: It returns "en-US", as you can see in the iOS 11 Project attached. Regression: As of iOS 10.3, this is not reproducible, as you can see in the project attached as well. Version/Build: Version 9.0 beta 6 (9M214v)
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!