In my nib file, I selected one custom button and I want to set its corner radius. I contacted the QuartzCore framework and then I will write the following code to set its angular radius
[[btnPressureLink layer] setCornerRadius:15.0];
and when I add the background color for the button, the corner radius is set, but when I put the image on the button, the corner radius is not set. What needs to be done to set the radius of the angle when the image is used on the button?
source share