views:

132

answers:

1
// Make text white... and background blue

[myButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
[myButton setBackgroundColor:[UIColor blueColor]];

Should that make a button with white text... and a blue background? It doesn't.

A: 

What's the buttonStyle on that button? That'll affect how the color settings make it look. You might try different button styles until you find one that looks right.

codewarrior