如何在iOS上创建漂亮的按钮?

时间:2011-02-11 08:22:49

标签: iphone ios uibutton

我不确定这是否是一个完全愚蠢的问题而且我只是没有看到它,但我得到它。

Apple有多次使用这个漂亮的闪亮按钮,例如:秒表

enter image description here

现在,您如何创建这些按钮?在代码和界面设计器中?

或者只能将图像用于不同的按钮状态吗?

感谢。

4 个答案:

答案 0 :(得分:25)

网上有大量样本。

试试这些: -

cool-tool-for-quickly-making-glossy-ios-buttons

drawing-gloss-gradients

Gradient Button

我希望,这有帮助

答案 1 :(得分:3)

我使用艺术文字。有一个免费的精简版。你可以download Art Text from the Mac App store

答案 2 :(得分:1)

https://github.com/mattlawer/BButton

BButton 2.0 BButton是UIButton的子类,看起来像Twitter Bootstrap 2.3.1按钮。

由@jessesquires重构,2013年4月。

包括@leberwurstsaft / FontAwesome-for-iOS,已从原版FontAwesome修复为iOS。

答案 3 :(得分:-1)

您可能想要使用此custom button component

enter image description here