It looks like your button is of type UIButtonTypeRoundedRect . The link below should answer your question.
Is it possible to change the background color of UIButtons?
What I do just doesn't give him a type.
UIButton *myButton = [[UIButton alloc] init]; [myButton setBackgroundColor:[UIColor blueColor]]; [myButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
It doesn't seem like that.
source share