views:

368

answers:

2

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?

+1  A: 

Set its style to UIBarButtonItemStyleDone.

Tom Irving
+1  A: 

I believe you are looking for the showsTouchWhenHighlighted property for the UIButton class. Give this a try.

myButton.showsTouchWhenHighlighted = YES;
Drewsmits