GCKUIbutton क्लास
UIButton की सब-क्लास, जो ऐप्लिकेशन के कस्टम स्टेटस के साथ काम करती है.
ये स्थितियां, ऐप्लिकेशन के हिसाब से अलग-अलग स्थितियां देने के लिए, बटन की state प्रॉपर्टी की वैल्यू पर ओआर्ड की जाती हैं. इमेज को इन कस्टम स्थितियों के लिए असाइन किया जा सकता है, उदाहरण के लिए:
[बटन सेट इमेज:[UIImage ImageNamed:@"myCustomStateImage"]
forState:(UIControlStateGeneral | kMyControlStateCustom)];
ऐप्लिकेशन की स्थिति की वैल्यू में सिर्फ़ उन बिट का इस्तेमाल किया जाना चाहिए जो UIControlStateApplication बिटमास्क में सेट किए गए हों.
- Deprecated:
- GCKUIMultistateButton का इस्तेमाल करें.
- से
- 3.0
GCKUIMultistateButton को इनहेरिट करता है.
- (void) setImage: |
|
(UIImage *) |
image |
forButtonState: |
|
(NSUInteger) |
buttonState |
|
|
| |
बटन की किसी दी गई स्थिति के लिए इमेज को सेट करता है.
- Parameters
-
image | The image. |
buttonState | The button state. |
- (UIControlState) applicationState |
|
readwritenonatomicassign |
बटन के ऐप्लिकेशन की स्थिति.
यह स्थिति बटन की मौजूदा स्थिति पर OR के रूप में दी जाती है.
- (NSUInteger) buttonState |
|
readwritenonatomicassigninherited |
बटन के ऐप्लिकेशन की स्थिति.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2023-12-02 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2023-12-02 (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"]]