UITextField does not center the text properly when it is created programatically
Originator: | dcorderoramirez | ||
Number: | rdar://30944912 | Date Originated: | 09-Mar-2017 12:53 PM |
Status: | Open | Resolved: | |
Product: | tvOS + SDK | Product Version: | 10.2 |
Classification: | Reproducible: | Always |
Area: tvOS SDK Summary: When an instance of UITextField is created programatically setting the property isSecureTextEntry equal to true, the text is not propertly centered. A project reproducing the error can be found here: https://github.com/dcordero/Radar-30944912 Steps to Reproduce: In the project attached, 2 UITextFields and 1 UIButton are created: UITextField, programatically created on the left side UITextField, created from Interface Builder on the right side UIButton on the right edge 1.- Navigate to those UITextFields and introduce some texts on them 2.- Move the focus to the UIButton in order to get a similar layout on both UITextFields Expected Results: The text appears in the center of the UITextField, default behaviour of contentVerticalAlignment Actual Results: The text is slightly unaligned Version: tvOS 10.2 Notes: Configuration: Apple Tv 4th Generation
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!