设置placeholder的字体颜色
//设置字体颜色
[self.searchTextField setValue:[UIColor colorWithRed:0.50 green:0.50 blue:0.50 alpha:1.0] forKeyPath:@"_placeholderLabel.textColor"];
   
//设置字体大小
[self.searchTextField setValue:[UIFont systemFontOfSize:15] forKeyPath:@"_placeholderLabel.font"];
    初探佳境,多多学习交流
 
                    
                     
                    
                 
                    
                
 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号