0
我想爲密碼textfield ios設置自定義字體。感謝hep。用於密碼textfield佔位符的自定義字體ios
我想爲密碼textfield ios設置自定義字體。感謝hep。用於密碼textfield佔位符的自定義字體ios
- (void)drawPlaceholderInRect:(CGRect)rect {
[self.placeholder drawInRect:rect withAttributes:@{NSFontAttributeName: [UIFont fontWithName:@"MyriadPro-Bold" size:15.0], NSForegroundColorAttributeName: self.textColor}];
}
我可以爲佔位符設置兩個不同的'fonts'嗎? – aircraft