GCKUIMultistateButton Class

  • GCKUIMultistateButton is a subclass of UIButton that supports multiple states, allowing you to assign different images for each state.

  • You can set the image for a specific button state using the setImage:forButtonState: method.

  • The buttonState property indicates the current application state of the button.

  • This class is available since version 4.0 of the framework and is inherited by GCKUIButton.

GCKUIMultistateButton Class Reference

Overview

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.

Instance Method Summary

(void) - setImage:forButtonState:
 Sets the image to display for a given button state. More...
 

Property Summary

NSUInteger buttonState
 The button's application state. More...
 

Method Detail

- (void) setImage: (UIImage *)  image
forButtonState: (NSUInteger)  buttonState 

Sets the image to display for a given button state.

Parameters
imageThe image.
buttonStateThe button state.

Property Detail

- (NSUInteger) buttonState
readwritenonatomicassign

The button's application state.