Search code examples
iphoneuikituibarbuttonitemuibarbuttonitemstyle

How do I make a UIBarButtonItem 'glow'?


In the Maps app, when you press the tracking button in the lower left hand corner, it glows showing that it's pressed. This makes it behave like a radio button, and it will un-glow once you move the map. Is there a simple way to but a button into the pressed state?


Solution

  • Set its style to UIBarButtonItemStyleDone.