Is there a way to highlight (i.e., toggle) a `UIBarButtonItem` without using a custom view?

For example, see **3D** button from the *Maps* app:

![Maps app](https://i.stack.imgur.com/3Q8sO.png)

or **Shuffle All** from the *Music* app:

![Music App](https://i.stack.imgur.com/GdsBC.png)