set the style of a edit button from a table view to plain (iphone sdk)
How can I cha开发者_开发百科nge the style of a edit button from a table view? I tried it with the following code but it doesn't work.
self.navigationItem.rightBarButtonItem = self.editButtonItem;
self.navigationItem.rightBarButtonItem.style = UIBarButtonItemStylePlain;
Thanks in advance.
SeanAre you doing this in ViewDidLoad? You can't just change the button on a whim; there has to be a UIView change to trigger a change.
精彩评论