This commit is contained in:
lianxiang
2018-09-20 00:25:25 +08:00
parent 27e27d5d12
commit 309cae4ab2
56 changed files with 1755 additions and 39 deletions
+2
View File
@@ -15,5 +15,7 @@
@property(nonatomic,retain) UIColor *oinsideColor;
//光晕
@property(nonatomic,retain) UIColor *blurColor;
@property(nonatomic) CGFloat fontsize;
@end
+1 -2
View File
@@ -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{