views:

1075

answers:

6

According to this post, there is a stretchable UIButton image that is red.

Does anyone have a green one? (My Photoshop skills are very poor.)

+1  A: 

U can just play with HUE color property ;-)alt text

A: 

Bah you don't need photoshop! Use something like Paint.net on Windows or Seashore on OSX. Both are simple capable image editors.

Rob Segal
A: 

I can do you one better:

http://sites.google.com/site/javascriptfunyeah/random-files/green-button.svg

Now it's ACTUALLY scalable.

amphetamachine
+4  A: 

So you want a button with a gradient but you don't want to have to draw the image yourself?

Use a UISegmentedControl, make it bar style, one segment, give it a tint with the color you want and set the size to anything you want. Make its action momentary and start it in an unselected state. All this is doable in Interface Builder. The only difference from a UIButton is that you should connect up the value changed action instead of the touch up inside action.

This is by far the easiest way to do an attractive single button on iPhone/iPad.

Adam Eberbach
+1  A: 

Use a UISegmentedControl, make it bar style, one segment, [...] All this is doable in Interface Builder.

How are you setting it to "1 segment" using IB? The lowest allowed value is "2".

Sally