Is it possible to change UIBarButtonItem title and style in runtime?

Posted by user262325 on Stack Overflow See other posts from Stack Overflow or by user262325
Published on 2010-06-13T02:41:47Z Indexed on 2010/06/13 2:42 UTC
Read the original article Hit count: 204

Filed under:

Hello everyone

In one project, I hope to change UIBarButtonItem and style in runtime

editBarItemButton links to a UIBarButtonItem which original status are

style:UIBarButtonItemStyleBordered title:Edit

if I press the bar item button, it will execute the codes below:

[editBarItemButton setStyle: UIBarButtonItemStyleDone];
[editTarBarItemButton setTitle:@"Done"  ];

but neither the style nor title has changed.

Welcome any comment

Thanks interdev

© Stack Overflow or respective owner

Related posts about iphone