I would like the rounded rectangle portion of the subject type of UIButton to be a solid custom color I specify. I understand that
. setTitleColor : changes the tex
You can try to grab the layer and set its corner radius in a custom button. I haven't tried it, but it seems worth a try.
[[button layer] setCornerRadius:12.0f];
[[button layer] setMasksToBounds:YES];
[[button layer] setBackgroundColor:[[UIColor redColor] CGColor]];
You'll have to add the QuartzCore framework to your project (and #import ) in order to take advantage of these methods.
Just an addition, in this case you use button type as "Custom". So the button can be declared as : UIButton *button = [[UIButton buttonWithType:UIButtonTypeCustom] retain];