iphone TextView 加个圆角
2011-04-08 11:08
190 查看
#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;
[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;
相关文章推荐
- 像iphone一样将android TextView 做成圆角的
- Android开发-TextView background 背景 颜色 圆角-AndroidStudio
- Android中TextView显示圆圈背景或设置圆角的方法
- textView 圆角
- 一段代码,给 TextView 加个圆角
- Android开发-TextView background 背景 颜色 圆角-AndroidStudio
- iphone开发 设置view呈圆角
- shape为textView等设置圆角
- 圆角框TextView
- textview圆角效果
- Android给TextView和EditText等控件设置透明背景、圆角边框
- Android给TextView设置透明背景、圆角边框
- [置顶] android自定义view控件之一圆角背景TextView
- android xml实现TextView圆角 边框颜色 边框长度 背景色
- 自定义圆角TextView 背景色
- Android中ListView圆角实现,仿iPhone中UITableView
- Android给TextView设置透明背景、圆角边框
- android 圆角边框、渐变背景的TextView
- 给TextView 加上圆角和边框
- IPHONE 和 KVC/KVO 监听对象属性变化(例如:获取textView 的text的变化)