views:

4257

answers:

4

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
+10  A: 
Alexandre L Telles
Thanks, it worked.
ebaccount
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
You can use the iPhone Style Icon Tutorial to get you started:http://www.keepthewebweird.com/iphone-style-icon-tutorial/
hanleyp
A: 

I started this thread on iphonedevsdk.com.

Hopefully we'll get an answer there if not here.

Cole
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