GCKUIMultistateButton Class

  • GCKUIMultistateButton is a subclass of UIButton that supports multiple states.

  • Images can be assigned to each state using the setImage:forButtonState: method.

  • The button's current application state is managed by the buttonState property.

A subclass of UIButton that supports multiple states.

Assign an image to each state with the setImage:forButtonState: (GCKUIMultistateButton) method.

Since
4.0

Inherits UIButton.

Inherited by GCKUIButton.

Property Summary

NSUInteger buttonState
 The button's application state. More...
 
- (void) setImage: (UIImage *)  image
forButtonState: (NSUInteger)  buttonState 

Sets the image to display for a given button state.

Parameters
imageThe image.
buttonStateThe button state.

- (NSUInteger) buttonState

readwritenonatomicassign

The button's application state.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-09-18 UTC.