<!--
{
  "availability" : [
    "iOS: 6.0.0 - 13.0.0",
    "iPadOS: 6.0.0 - 13.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "tvOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaPlayer",
  "identifier" : "/documentation/MediaPlayer/MPVolumeView/routeButtonImage(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:objc(cs)MPVolumeView(im)routeButtonImageForState:"
  },
  "title" : "routeButtonImage(for:)"
}
-->

# routeButtonImage(for:)

Returns the button image associated with the specified control state.

```
func routeButtonImage(for state: UIControl.State) -> UIImage?
```

## Parameters

`state`

The control state whose thumb image you want. You should specify only one control state value for this parameter.

## Return Value

The button image associated with the specified state, or <doc://com.apple.documentation/documentation/ObjectiveC/nil-227m0> if an appropriate image could not be retrieved. This method might return <doc://com.apple.documentation/documentation/ObjectiveC/nil-227m0> if you specify multiple control states in the state parameter.

## Discussion

Use this method to retrieve the corresponding button image for a specific state.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)