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.)
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.)
I can do you one better:
http://sites.google.com/site/javascriptfunyeah/random-files/green-button.svg
Now it's ACTUALLY scalable.
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.
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".