iOS UILabel UITextField字体加粗
_hAccountInputh = [[UITextField alloc ]initWithFrame:CGRectMake(13+19+offetX, 80.5-inputOffetY, 130, 35)];
[_hAccountInputh setFont:[UIFont fontWithName:[NSString stringWithFormat:@"%@%@%@",@"Helvet",@"ica",@"-Bold"] size:13.0]];
NSAttributedString *placeholderArr = [[NSAttributedString alloc] initWithString:[NSString stringWithFormat:@"%@%@%@",@"请输入",@"账",@"号"] attributes:
@{NSForegroundColorAttributeName:InputSignalTradeEditionColoringAbnormal,
NSFontAttributeName:_hAccountInputh.font
}];
_hAccountInputh.textColor = InputSignalTradeEditionColoringAbnormal;
_hAccountInputh.attributedPlaceholder = placeholderArr;
_hAccountInputh.returnKeyType = UIReturnKeyDone;
_hAccountInputh.autocorrectionType = UITextAutocorrectionTypeNo;
_hAccountInputh.keyboardType = UIKeyboardTypeDefault;
_hAccountInputh.delegate = self;
[self addSubview:_hAccountInputh];
网友评论