Wrong placeholder font size for UITextFields defined in Interface Builder
Originator: | dcorderoramirez | ||
Number: | rdar://30943855 | Date Originated: | 09-Mar-2017 11:14 AM |
Status: | Open | Resolved: | |
Product: | tvOS + SDK | Product Version: | 10.2 |
Classification: | Reproducible: | Always |
Summary: When an intance of UITextField is created from Interface Builder, it ignores the property NSFontAttributeName set to attributedPlaceholder when isSecureTextEntry is set to true A project reproducing the error can be found here: https://github.com/dcordero/Radar-UITextField/ Steps to Reproduce: In the project attached, 4 UITextFields are created: UITextField, programatically created with isSecureTextEntry equals to true UITextField, programatically created with isSecureTextEntry equals to false UITextField, created from Interface Builder, with isSecureTextEntry equals to true UITextField, created from Interface Builder, with isSecureTextEntry equals to false Expected Results: The placeholder takes the font size defined by NSFontAttributeName regarless of how the instance of UITextField is created. Actual Results: UITextField created from Interface Builder ignores the property NSFontAttributeName set to attributedPlaceholder when isSecureTextEntry is set to true Version: tvOS 10.2, Xcode 8.2 Notes: Configuration: Apple Tv 4th
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!