开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜