I know to set the border to the button by the following ways,
button.layer.cornerRadius = 0.0;
button.layer.borderWidth = 2.5;
button.layer.borderColor = [[UIColor darkGrayColor] CGColor];
But I need to know how to remove or delete the border of the button?
If you want to remove the focus around a button, you can use the CSS outline property. You need to set the “none” value of the outline property.
button.layer.borderWidth = 0.0;
Will make the border invisible.
button.layer.borderColor = [UIColor colorWithRed:0.3 green:0.6 blue:0.9 alpha:0.1];
// set 'alpha' to something less than 1. -----^^^
Try this !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With