给 TextView 加上圆角无疑会让界面更漂亮更有苹果味儿
#import <QuartzCore/QuartzCore.h>
[self.content.layer setBackgroundColor:[[UIColor whiteColor] CGColor]];
[self.content.layer setBorderColor:[[UIColor grayColor] CGColor]];
[self.content.layer setBorderWidth:1.0];
[self.content.layer setCornerRadius:8.0];
[self.content.layer setMasksToBounds:YES];
self.content.clipsToBounds = YES;
本文介绍了一种使用QuartzCore框架为iOS应用中的TextView添加圆角效果的方法,通过设置层属性实现美观的视觉效果。
163

被折叠的 条评论
为什么被折叠?



