iOS - 利用UILayer实现扁平化控件、带弧度的UIButton、圆形的UIImageView:
最近在做扁平化,需要修改一些控件,因为是纯代码,没法在xib文件里面拖,实现之后记录一下:UIButton UIButton*btnLogin=[UIButtonbuttonWithType:UIButtonTypeRoundedRect];
btnLogin.frame=CGRectMake(30.0,275.0,260.0,45.0);
[btnLoginsetBackgroundColor: