开发者

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.

Sean


Are 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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜