开发者

Add a toolbar button to a MonoTouch.Dialog project

I am trying to figure out how to add a button to the top Toolbar on my MonoTouch.Dialog app. A button where the "Edit" button would usually show up. Can't find an example any开发者_如何学编程where online. Can anyone help me?


- (void)setRightBarButtonItem:(UIBarButtonItem *)item animated:(BOOL)animated

In a UIViewController you would create a UIBarButtonItem of whatever style you want and then:

[[self navigationItem] setRightBarButtonItem:myButton animated:NO];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜