add
This commit is contained in:
@@ -15,5 +15,7 @@
|
||||
@property(nonatomic,retain) UIColor *oinsideColor;
|
||||
//光晕
|
||||
@property(nonatomic,retain) UIColor *blurColor;
|
||||
@property(nonatomic) CGFloat fontsize;
|
||||
|
||||
|
||||
@end
|
||||
|
||||
@@ -30,8 +30,7 @@
|
||||
CGContextSetTextDrawingMode(ctx, mode);
|
||||
NSMutableParagraphStyle *paragraStyle = [[NSMutableParagraphStyle alloc] init];
|
||||
paragraStyle.alignment = NSTextAlignmentCenter;
|
||||
|
||||
[self.text drawInRect:self.bounds withAttributes:@{NSFontAttributeName:[UIFont fontWithName:@"PingFangSC-Semibold" size:22],NSForegroundColorAttributeName:[UIColor whiteColor],NSKernAttributeName:@(4),NSParagraphStyleAttributeName:paragraStyle}];
|
||||
[self.text drawInRect:self.bounds withAttributes:@{NSFontAttributeName:[UIFont fontWithName:@"PingFangSC-Semibold" size:self.fontsize],NSForegroundColorAttributeName:[UIColor whiteColor],NSKernAttributeName:@(4),NSParagraphStyleAttributeName:paragraStyle}];
|
||||
|
||||
}
|
||||
-(void)dealloc{
|
||||
|
||||
Reference in New Issue
Block a user