【问题标题】:Objective C: UIButton, UIBarButtonItem, UIBarButtonItemStyle, UIBarButtonSystemItem目标 C:UIButton、UIBarButtonItem、UIBarButtonItemStyle、UIBarButtonSystemItem
【发布时间】:2011-12-30 02:07:49
【问题描述】:

我现在正在探索 XCode 和目标 c,所以在我的下一个项目中我会更加熟悉它。

我遇到了这个 UIButton、UIBarButtonItem、UIBarButtonItemStyle、UIBarButtonSystemItem。

它们有什么区别?

我该如何使用它们?

//我知道UIButton的用途,我只是把它放在比较的目的。

谢谢!

【问题讨论】:

  • 您是否需要了解详尽的官方文档中未涵盖的内容以及 XCode 和 Google 中提供的大量示例代码?
  • 在哪里可以找到该文档??我不知道有。我这个月才切换到 XCode 和 Objective C。
  • 内置文档可从 Xcode 的帮助菜单中获得。您可以从 Xcode 的“下载”选项卡下的首选项中安装文档“库”。 UIButton 的文档也可以在 Apple 开发者网站上找到,作为“UIButton”的第一个 Google 结果。启动 Xcode 时显示的欢迎屏幕也包含所有这些的链接。

标签: iphone ios xcode ipad uibutton


【解决方案1】:

Uibarbutton 用作数组中的接收器;并且通常显示在工具栏或导航栏中。 UibarbuttonItemStyle 更改栏按钮的外观和感觉。 Uibarbuttonsystemitem 使用苹果定义的按钮,例如 safari 工具栏中的完成按钮。所有 Uibarbutton 都可以调用与 UIButtons 相同的事件,但 alpha 属性除外(很烦人)。

文档列表在这里:http://developer.apple.com/library/ios/documentation/uikit/reference/UIBarButtonItem_Class/Reference/Reference.html

【讨论】:

  • 顺便说一句,在您的问题中很好地使用了 //comment 部分。我会立即从你身上偷走的纯粹光彩(LOL)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多