How to change UIBarButtonItem style?
I try to change the style of a UIBarButtonItem when a user select a row in a tableView
I use it: [btnValided开发者_如何学编程 setStyle:UIBarButtonItemStyleDone]; [btnValided setEnabled:YES];
But it's not good (setEnabled is good)
Have an idea?
Thanx for help :)
I would release the unwanted old item and alloc and init a new one, and then add it to the same place.
what you exactly want to do? a tick button?
you can specify your own image if you like, one image for styleDefault and one image for styleHighlighted (or selected?) whatever you like.
精彩评论