We can Change the Placeholder textcolor to any color which you want by using the below code.
UIColor *color = [UIColor whiteColor];
self.txtUserName.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"Username" attributes:@{NSForegroundColorAttributeName: color}];






0 comments:
Post a Comment