GCKUIButton 类
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
支持自定义应用状态的 UIButton 的子类。
这些状态的运算符为按钮 state 属性的值,用来提供应用特定的其他状态。图片可以分配给这些自定义状态,例如:
[按钮 setImage:[UIImage imageNamed:@"myCustomStateImage"]
forState:(UIControlStatenormal | kMyControlStateCustom)]
应用状态值只能使用 UIControlStateApplication 位掩码中设置的位。
- 辛塞
- 3.0
继承 UIButton。
- (UIControlState) applicationState |
|
readwritenonatomicassign |
按钮的应用状态。
此状态会通过 OR 关系应用到按钮的现有状态。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-12-05。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2022-12-05。"],[[["GCKUIButton is a subclass of UIButton that supports custom application states in addition to the standard UIButton states."],["These custom states are defined by the application and can have associated images for different states."],["Application-defined states should only use bits within the UIControlStateApplication bitmask."],["The `applicationState` property, which is readwrite and non-atomic, stores the button's custom application state."]]],[]]