84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
如果不行的话,怎么把文字转换成图片?
认证0级讲师
重载UIView子类中的drawRect:方法,自己在drawRect:里面画倒影
CGContextRef context = UIGraphicsGetCurrentContext(); UIFont *myFont = [UIFont systemFontOfSize:17]; CGContextSetShadow(context, CGSizeMake(5, 5), 2); [@"需要倒影的文字" drawAtPoint:CGPointMake(50, 50) withFont:myFont];
重载UIView子类中的drawRect:方法,自己在drawRect:里面画倒影