I am trying to set an image as the background of a custom UIButton. I was able to set a background image for the \"rounded rect\" UIButton in interface builder, but now the
You can set the border properties on the CALayer by accessing the layer property of the button.
First, add Quartz
#import
Set properties:
[[myButton layer] setBorderWidth:2.0f]; [[myButton layer] setBorderColor:[UIColor greenColor].CGColor];