问题
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:
U can just play with HUE color property ;-)alt text http://img34.imageshack.us/img34/1962/macscreenshotd.png
回答2:
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.
回答3:
Bah you don't need photoshop! Use something like Paint.net on Windows or Seashore on OSX. Both are simple capable image editors.
来源:https://stackoverflow.com/questions/2276099/a-big-green-uiimage-anyone