iOS开发设置textField的属性placeholder的字体颜色及大小

self.moneytextfield.placeholder = @"请输入会员消费金额";
    [self.moneytextfield setValue:[UIColor lightGrayColor]  forKeyPath:@"_placeholderLabel.textColor"];
    [self.moneytextfield setValue:[UIFont systemFontOfSize:16.0] forKeyPath:@"_placeholderLabel.font"];

你可能感兴趣的:(ios,字体,textfield,placeholde)