ios修改textField的placeholder的字体颜色和大小

    1. textField.placeholder = @"username is in here!";  
    2. [textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];  
    3. [textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"]; 
posted @ 2016-02-23 12:01  Juilliard  阅读(461)  评论(0)    收藏  举报