Tuesday, December 15, 2015

How to change color of text filed placeholder in iOS




myTextField.attributedPlaceholder = 
           [[NSAttributedString alloc
                   initWithString @"Search Venue/Places" 
                   attributes:@{
                                       NSForegroundColorAttributeName: [UIColor whiteColor], 
                                        NSFontAttributeName[UIFont systemFontOfSize:15.0]
                                        }];

No comments:

Post a Comment