Flicker Images

Find programmers and grapic design experts at ScriptLance.com

Friday, September 11, 2015

iPhone UITextField - Change placeholder text color



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}];
Share:

0 comments:

Post a Comment

Game Reviews

BTemplates.com

Powered by Blogger.

Search This Blog

Video Of Day

Find Us OIn Facebook

Blogroll

Contact

Tackle the Web with up to 5 new .COMs, $5.99 for the 1st year!

Advertisement