How to dynamically change placeholder color of the UITextField? This is always the same system color.
UITextField
No option in xib editor.
@DogCoffee's answer in Swift would be
let placeholderAttrs = [ NSForegroundColorAttributeName : UIColor.redColor()] let placeholder = NSAttributedString(string: "Some text", attributes: placeholderAttrs) textField.attributedPlaceholder = placeholder