Класс GCKUIButton
Подкласс UIButton , поддерживающий пользовательские состояния приложения.
Эти состояния объединяются по логическому оператору со значением свойства состояния кнопки, чтобы обеспечить дополнительные состояния, специфичные для приложения. Изображениям можно назначить эти пользовательские состояния, например:
[button setImage:[UIImage imageNamed: @"myCustomStateImage" ]
forState:(UIControlStateNormal | kMyControlStateCustom)];
Значения состояния приложения должны использовать только биты, установленные в битовой маске UIControlStateApplication .
- Deprecated:
- Используйте GCKUIMultistateButton .
- С
- 3.0
Наследует GCKUIMultistateButton .
- (void) setImage: |
|
(UIImage *) |
image |
forButtonState: |
|
(NSUInteger) |
buttonState |
|
|
| |
Устанавливает изображение для отображения для данного состояния кнопки.
- Parameters
-
image | The image. |
buttonState | The button state. |
- (UIControlState) applicationState |
|
read write nonatomic assign |
Состояние приложения кнопки.
Это состояние объединяется по ИЛИ с существующим состоянием кнопки.
- (NSUInteger) buttonState |
|
read write nonatomic assign inherited |
Состояние приложения кнопки.
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-10 UTC.
[null,null,["Последнее обновление: 2025-01-10 UTC."],[[["GCKUIButton is a subclass of UIButton that supports custom application states, allowing developers to assign images to these states for enhanced UI customization."],["This class is deprecated since version 3.0 and developers should use GCKUIMultistateButton instead."],["Application state values should only use bits defined in the UIControlStateApplication bitmask to ensure compatibility and avoid conflicts."],["`setImage:forButtonState:` method allows setting images for specific button states, providing visual feedback to users."],["The `applicationState` property represents the button's current application state, which is ORed with the existing state to combine multiple states."]]],["The GCKUIButton class, a subclass of UIButton, supports custom application states via the `state` property. Custom states are combined with the button's existing state. Images can be assigned to these custom states using `setImage:forButtonState:`. The `applicationState` property is ORed onto the button's state. The `buttonState` represents the button's state. Application states should use only bits within the `UIControlStateApplication` bitmask. The GCKUIButton is deprecated, and developers should use GCKUIMultistateButton instead.\n"]]