Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

uitextfield change placeholder color

swift 5 
myTextfield.attributedPlaceholder =
NSAttributedString( 
  string: "placeholder text", 
  attributes: [
    NSAttributedString.Key.foregroundColor: UIColor.red
  ]
)
 
PREVIOUS NEXT
Tagged: #uitextfield #change #placeholder #color
ADD COMMENT
Topic
Name
7+3 =