A big, green UIImage anyone? [closed]

柔情痞子 提交于 2019-12-19 12:04:03

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!