public override void ViewDidLoad () { base.ViewDidLoad (); var doneButton = new UIBarButtonItem (UIBarButtonSystemItem.Done, (s,e) => { }); NavigationItem.SetRightBarButtonItem (doneButton, false); View = editTripView = new EditTripScreenView (View.Frame, this.trip); editTripView.ButtonExpenses.TouchUpInside += (sender, e) => { if(tripInfoController ==null) tripInfoController = new TripInfoScreenController(); this.NavigationController.PushViewController(tripInfoController, true); }; }
public override void ViewDidLoad() { base.ViewDidLoad(); var doneButton = new UIBarButtonItem(UIBarButtonSystemItem.Done, (s, e) => { }); NavigationItem.SetRightBarButtonItem(doneButton, false); View = editTripView = new EditTripScreenView(View.Frame, this.trip); editTripView.ButtonExpenses.TouchUpInside += (sender, e) => { if (tripInfoController == null) { tripInfoController = new TripInfoScreenController(); } this.NavigationController.PushViewController(tripInfoController, true); }; }