How to dynamically change placeholder color of the UITextField? This is always the same system color.
UITextField
No option in xib editor.
Try This.
UIColor *color = [UIColor redColor]; self.txtUsername.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"Your Placeholder Text" attributes:@{NSForegroundColorAttributeName:color}];