iOS 改变UITextField的placeholder属性的颜色

UITextField

UIColor*color = [UIColor colorWithWhite:1 alpha:0.8];
    self.phoneNumT.attributedPlaceholder = [[NSAttributedString alloc]initWithString:@"手机号"attributes:@{NSForegroundColorAttributeName: color}];

你可能感兴趣的:(iOS 改变UITextField的placeholder属性的颜色)