iOS 改变UITextField的placeholder属性的
2016-10-13 本文已影响5人
那片阳光已醉
UITextField
UIColor*color = [UIColor colorWithWhite:1 alpha:0.8];
self.phoneNumT.attributedPlaceholder = [[NSAttributedString alloc]initWithString:@"手机号"attributes:@{NSForegroundColorAttributeName: color}];