How do I set the color for the editButtonItem in the navigation bar of a UITableViewController ?

Posted by eemceebee on Stack Overflow See other posts from Stack Overflow or by eemceebee
Published on 2010-05-23T10:06:59Z Indexed on 2010/05/23 10:10 UTC
Read the original article Hit count: 467

Hi

I have a UITableViewController where I added a "editButtonItem" in the navigation bar :

self.navigationItem.leftBarButtonItem = self.editButtonItem;

No magic here, but I try to define the color (background and foreground/textcolor) of this button.

I read in the Apple forum somewhere that the button changes the color if I change the navigationbar to the same color, well despite the fact that I do not get this to work either (for testing) I do not want to touch the navigationbr itself, just the button.

Since this button is already predefined I am not sure how to handle this. Do I need to overwrite the button with my own definition or can I just simply apply a new style (if so how ?)

Thx

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableviewcontroller