I am using a standard UIBUtton where I set border width and a corner radius such as
[button1.layer setCornerRadius: 15.0];
[button1.layer setMasksToBounds:TRUE];
[button1.layer setBorderWidth: 8.0];
As you can see, there are strange artifacts appearing around the rounded corners of the button. Are there any way to get rid of them other then drawing the button manually?
At the end of the day, the solution that worked for me was to set the border width of the buttons to 0 and then simply draw them on the white background view at the proper offsets. Couldn't take advantage of UIButton's border taking care of the white spacing around each button, but the artifacts are obviously gone.