How can I change the default color of the button on iPhone?
A:
Assuming you mean UIButton
, you can only change the title color using setTitleColor:forState:
.
You can't change the background color or the shape. You have to create your own control for that.
Can Berk Güder
2009-06-04 01:13:02
Thanks, it worked.
ebaccount
2009-06-04 19:16:20
how can one make your own colored buttons? Say yellow instead of blue png? does anyone have a photoshop tutorial link for such a thing?
Alexi Groove
2009-07-01 16:20:47
You can use the iPhone Style Icon Tutorial to get you started:http://www.keepthewebweird.com/iphone-style-icon-tutorial/
hanleyp
2009-07-06 22:02:41
A:
I started this thread on iphonedevsdk.com.
Hopefully we'll get an answer there if not here.
Cole
2009-07-06 21:11:56
A:
I came across this post that explains how to do this without images and completely in code.
http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/
Hope that helps.
AidenMontgomery
2010-10-21 13:50:57