开发者

How to change UIBarButtonItem style?

开发者 https://www.devze.com 2023-02-02 16:39 出处:网络
I try to change the style of a UIBarButtonItem when a user select a row in a tableView I use it: [btnValided开发者_如何学编程 setStyle:UIBarButtonItemStyleDone];

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

精彩评论

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