개발/swift
How to change UITextField placeholder color?
lemonade
2021. 3. 5. 10:00
반응형
How to change UITextField placeholder color?
When you want to change UITextField placeholder color, there are two ways.
One way is using code, and the other way is using storyboard.
In code)
If you want to do it programmatically, you can use attributedString.
Replace "Placeholder" with 'real' placeholder and set color what you want.
In storyboard)
If you want to do it in storyboard, you can use user defined runtime attributes.
Key is 'placeholderLabel.textColor'
Enjoy codding :)
반응형