1
我知道如何通過使用UIButton的CALayer的cornerRadius來構建一個圓形的UIButton。使用CALayer更改UIButton形狀?
col1 = [UIButton buttonWithType:UIButtonTypeCustom];
col1.layer.cornerRadius=w/2;
col1.layer.masksToBounds=YES;
有沒有辦法做更多關於邊界的有趣事情,比如用CALayer砍掉半個角落?
任何示例?