GCKUIButton Sınıfı
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Özel uygulama durumlarını destekleyen bir UIButton alt sınıfı.
Bu durumlar, uygulamaya özel ek durumlar sağlamak için düğmenin state özelliğinin değerine OR uygulanır. Resimler bu özel durumlara atanabilir. Örneğin:
[button setImage:[UIImage imageNamed:@"myCustomStateImage"]
forState:(UIControlStateNormal | kMyControlStateCustom)];
Uygulama durumu değerleri yalnızca UIControlStateApplication bit maskesinde ayarlanan bitleri kullanmalıdır.
- Deprecated:
- GCKUIMultistateButton hesabını kullanın.
- yılından beri
- 3,0
GCKUIMultistateButton değerini devralır.
| - (void) setImage: |
|
(UIImage *) |
image |
| forButtonState: |
|
(NSUInteger) |
buttonState |
|
|
| |
Belirli bir düğme durumu için görüntülenecek resmi ayarlar.
- Parameters
-
| image | The image. |
| buttonState | The button state. |
| - (UIControlState) applicationState |
|
readwritenonatomicassign |
Düğmenin uygulama durumu.
Bu durum, düğmenin mevcut durumuna VEYA uygulanır.
| - (NSUInteger) buttonState |
|
readwritenonatomicassigninherited |
Düğmenin uygulama durumu.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-25 UTC."],[],["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"]]