placeholder
我的textField建在cell上, 暂时发现只能在取出cell的协议方法写以下代码, 不能在cell初始化里写
NSString *holderText = _mArrOfPlaceholder[indexPath.row];
NSMutableAttributedString *attriOfPlaceholder = [[NSMutableAttributedString alloc] initWithString:holderText];
//placeholder字体颜色
[attriOfPlaceholder addAttribute:NSForegroundColorAttributeName
value:[UIColor grayColor]
range:NSMakeRange(0, holderText.length)];
//placeholder字体大小
[attriOfPlaceholder addAttribute:NSFontAttributeName
value:[UIFont systemFontOfSize:13]
range:NSMakeRange(0, holderText.length)];
cell.textFieldOfInfo.attributedPlaceholder = attriOfPlaceholder;
加粗
[UIFont boldSystemFontOfSize:15];