- select the UITextfiled of which you want to change the color. if there are several text fields, you have to do the same procedure for each.
- open the identity inspector. see the pic.
- Find the User Defined Runtime Attributes and click + button.
- Type a new row with Key Path placeholderLabel.textColor. be reminded that this is for iOS13, Swift 5.0. if it is for lower version, type _placeholderLabel.textColor instead.
- choose Type color and select the color as your choice.
2020年1月31日金曜日
ios 13, how to change the text field placeholder color from storyboard
How to change text field placeholder color from storyboard .
登録:
投稿 (Atom)
