1
我知道如何通过使用UIButton的CALayer的cornerRadius来构建一个圆形的UIButton。使用CALayer更改UIButton形状?
col1 = [UIButton buttonWithType:UIButtonTypeCustom];
col1.layer.cornerRadius=w/2;
col1.layer.masksToBounds=YES;
有没有办法做更多关于边界的有趣事情,比如用CALayer砍掉半个角落?
任何示例?