开发者

set the style of a edit button from a table view to plain (iphone sdk)

开发者 https://www.devze.com 2022-12-21 01:03 出处:网络
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.

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

精彩评论

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