How to make a blue button with white text?

Posted by Bonnie on Stack Overflow See other posts from Stack Overflow or by Bonnie
Published on 2010-03-23T21:09:27Z Indexed on 2010/03/23 21:13 UTC
Read the original article Hit count: 312

// 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.

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about uibutton