# GCKUIMultistateButton Class

[Instance Methods](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_multistate_button#pub-methods) \| [Properties](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_multistate_button#properties) GCKUIMultistateButton Class Reference

## Overview

A subclass of [**UIButton**](https://goo.gl/VK61wU) that supports multiple states.

Assign an image to each state with the [setImage:forButtonState: (GCKUIMultistateButton)](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_multistate_button#afa6a9b60ccbe99ae3dd6fdd1f92225e3 "Sets the image to display for a given button state. ") method.

Since
:   4.0

Inherits UIButton.

Inherited by [GCKUIButton](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_button).

|---|---|
| ## Instance Method Summary ||
| (void) | - [setImage:forButtonState:](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_multistate_button#afa6a9b60ccbe99ae3dd6fdd1f92225e3) |
|   | Sets the image to display for a given button state. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_multistate_button#afa6a9b60ccbe99ae3dd6fdd1f92225e3) |
|   ||

|---|---|
| ## Property Summary ||
| NSUInteger | [buttonState](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_multistate_button#a51dc394e64d3837d6bffcad409f3f0f4) |
|   | The button's application state. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_multistate_button#a51dc394e64d3837d6bffcad409f3f0f4) |
|   ||

## Method Detail

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

Sets the image to display for a given button state.

Parameters
:

    |---|---|
    | image | The image. |
    | buttonState | The button state. |


## Property Detail

|---|---|
| |---| | - (NSUInteger) buttonState | | readwritenonatomicassign |

The button's application state.