Fonts 密码文本字段占位符ios的自定义字体

Fonts 密码文本字段占位符ios的自定义字体,fonts,passwords,textfield,placeholder,Fonts,Passwords,Textfield,Placeholder,我想为密码文本字段ios设置自定义字体。谢谢你的帮助。我能为我的占位符设置两种不同的字体吗? - (void)drawPlaceholderInRect:(CGRect)rect { [self.placeholder drawInRect:rect withAttributes:@{NSFontAttributeName: [UIFont fontWithName:@"MyriadPro-Bold" size:15.0], NSForegroundColorAttributeName:

我想为密码文本字段ios设置自定义字体。谢谢你的帮助。

我能为我的占位符设置两种不同的
字体吗?
- (void)drawPlaceholderInRect:(CGRect)rect {
    [self.placeholder drawInRect:rect withAttributes:@{NSFontAttributeName: [UIFont fontWithName:@"MyriadPro-Bold" size:15.0], NSForegroundColorAttributeName: self.textColor}];
}