我想为密码textfield ios设置自定义字体。谢谢你。
答案 0 :(得分:0)
- (void)drawPlaceholderInRect:(CGRect)rect {
[self.placeholder drawInRect:rect withAttributes:@{NSFontAttributeName: [UIFont fontWithName:@"MyriadPro-Bold" size:15.0], NSForegroundColorAttributeName: self.textColor}];
}