iphone:Rounded-rectangle-buttons
出自UXGuide.net
请帮助我们修订和更新本文的译文部分
本文的译文部分可能是由多个贡献者提供或从不同的渠道收集,未经过最终审阅和整理,请您帮助我们一起修订和更新本文的译文部分。
圆角矩形按钮
Rounded Rectangle Buttons
A rounded rectangle button is a versatile button you can use in a view to perform an action. You can see examples of this type of button at the bottom of an individual’s Contacts view: The Text Message and Add to Favorites buttons are rounded rectangle buttons, as shown in Figure 9-9.
圆角矩形按钮是一个多功能的按钮,你可以在一个视图中用它来执行的一个操作。在个人的联系人视图的底部,你可以看到很多这种按钮的例子:文字信息按钮,添加到收藏夹按钮都是圆角矩形按钮,如图9-9所示。
Figure 9-9 Rounded rectangle buttons perform application-specific actions
图9-9 圆角矩形按钮,执行应用程序的具体行为
When you supply a title for a rounded rectangle button, be sure to:
当你给一个圆角矩形按钮提供标题时,一定要:
- Use title-style capitalization (that is, capitalize every word except articles, coordinating conjunctions, and prepositions of four or fewer letters)
- 使用标题样式首字母大写规则(即,大写每个单词的首字母,除了冠词,并列连词和四个或更少字母的介词)
- Avoid creating a title that is too long. Overly long text gets truncated, which can make it difficult for users to understand it.
- 避免创建一个太长的标题。超长文本被截断后,用户会很难理解它。
To learn more about using a rounded rectangle button in your code, see UIButton Class Reference.
要了解有关在代码中使用圆角矩形按钮的信息,请参阅 UIButton 类型参考。