【代码笔记】iOS-圆角矩形

代码:

【代码笔记】iOS-圆角矩形
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view. self.title=@"圆角矩形"; UIImageView *imageView=[[UIImageView alloc]initWithFrame:CGRectMake(50, 100, 100, 100)];
imageView.backgroundColor=[UIColor redColor];
//设计其圆角半径
[imageView.layer setCornerRadius:18.0f];
[imageView.layer setMasksToBounds:YES];
[self.view addSubview:imageView];
}
【代码笔记】iOS-圆角矩形
 
 
上一篇:VC的CListCtrl控件


下一篇:from collections import namedtuple 使用