public override void ViewDidLoad () { base.ViewDidLoad (); var doneButton = new UIBarButtonItem(UIBarButtonSystemItem.Done, (s, e) => { NavigationController.PopViewControllerAnimated(false); }); NavigationItem.SetRightBarButtonItem (doneButton, false); View = editExpenseView = new EditExpenseView (); }
public override void ViewDidLoad() { base.ViewDidLoad(); var doneButton = new UIBarButtonItem(UIBarButtonSystemItem.Done, (s, e) => { NavigationController.PopViewControllerAnimated(false); }); NavigationItem.SetRightBarButtonItem(doneButton, false); View = editExpenseView = new EditExpenseView(); }