I wanted to add a back button on my view when I load it. Unfortunately, I am
unable to get the back button to display. I have the code below in my
ViewDidLoad() method. Any suggestions are appreciated.
public override void ViewDidLoad() {
// Do some other things var btn = new UIBarButtonItem
("Back", UIBarButtonItemStyle.Plain, delegate (object sender, EventArgs e) {
Console.WriteLine("BarButtonItem clicked.");
}); ToolbarItems = new
UIBarButtonItem[] {btn}; SetToolbarItems(ToolbarItems,
true); base.ViewDidLoad(); }
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch