我的代码:
-(void)buttonTap:(id)sender {
UIButton* myButton = (UIButton*)sender;
[[sender layer] setCornerRadius:15.0f]; //nothing happens
myButton.layer.cornerRadius = 15.0f; //nothing happens
myButton.hidden = YES; //works fine
}
如何更改发件人的cornerRadius?