![]() | UIButton changebackground color |
|
05 Apr 2009, 15:48
Cristian Smochina (34 posts) |
Hi there, Is there a way to change an UIButton’s background color? If I use the inherited property backgroundColor it just changes the button’s corners color… I hope there is a better way to do this, from code, for example, the built in behavior is when you press a button it turns blue, I don’t think it has an image just for that. Also, the Stocks application has the button green or red with darker green/red outlines. If not, I’m downloading Gimp right now, can’t be that hard to draw a button… Ok, here’s the weird part… http://img49.imageshack.us/img49/4142/greenk.png On emulator, they work just fine and display as they are. On the phone though, only the green one is showed, and instead of the red one, the button is white with a gray outline… Ok, if there were a problem with the red png file, where did it come up with a white color, no gradient, and gray outline??? http://img17.imageshack.us/my.php?image=2383467… Has anyone encountered this before? |
|
05 Apr 2009, 20:59
Cristian Smochina (34 posts) |
Ok, found what the problem was. |
| You must be logged in to comment |

