I want to highlight UIBarButton when touched is it possible if so please help me.
UIBarButtonItem *leftBarButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:@selector(refreshAction)];
self.navigationItem.leftBarButtonItem = leftBarButton;
[leftBarButton release];
Thank You
Praveena
Highlighting when touched is the behaviour of UIButton. It has a propery showsTouchWhenHighlighted, when set to YES shows white flash when touched. So, you can’t make UIBarButtonItem behave it like that.
You can create a UIButton, enable showsTouchWhenHighlighted, and add it to a UIBarButtonItem.