如何在 iOS 上创建漂亮的按钮?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4966924/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to create the nice buttons on iOS?
提问by eemceebee
I am not sure if this is a total stupid question and that I just do not see it but I just get it.
我不确定这是否是一个完全愚蠢的问题,我只是没有看到它,但我只是明白了。
Apple has this nice shiny button used on several occasions, e.g. stop-watch
苹果有这个漂亮的闪亮按钮,曾多次使用,例如秒表
Now, how can you create those buttons ? In code and Interface Designer ?
现在,您如何创建这些按钮?在代码和界面设计器中?
Or is it only possible by using images for the different button states ?
还是只能使用不同按钮状态的图像?
Thanks.
谢谢。
回答by iHS
There are numerous samples available online.
网上有很多样品。
Try these ones:-
试试这些:-
cool-tool-for-quickly-making-glossy-ios-buttons
I hope, it helps
我希望,它有帮助
回答by Rohit
I use Art Text. There is a lite version that is free. You can download Art Text from the Mac App store.
我使用艺术文本。有一个免费的精简版。您可以从 Mac App Store 下载 Art Text。
回答by phnmnn
https://github.com/mattlawer/BButton
https://github.com/mattlawer/BButton
BButton 2.0 BButton is a subclass of UIButton that looks like the Twitter Bootstrap 2.3.1 buttons.
BButton 2.0 BButton 是 UIButton 的子类,看起来像 Twitter Bootstrap 2.3.1 按钮。
Refactored by @jessesquires, April 2013.
由@jessesquires 重构,2013 年 4 月。
Includes @leberwurstsaft / FontAwesome-for-iOS, fixed for iOS from the original FontAwesome.
包括@leberwurstsaft / FontAwesome-for-iOS,从原始的 FontAwesome 为 iOS 修复。