public override void ViewDidLoad() { base.ViewDidLoad(); this.NavigationItem.SetHidesBackButton(true, false); MapService MapService = new MapService(_client); LocationService locationService = new LocationService(); locationService.CurrentLocation(_locationmanager); var map = MapService.GetMapView(); MapService.CenterToCurrentLocation(map, _eventLocation); map.AddAnnotations(new HOTCAnnotation(_eventLocation)); var CancelButton = new UIButton(UIButtonType.System); CancelButton.Frame = new CGRect(25, 500, 300, 150); CancelButton.SetTitle("Cancel", UIControlState.Normal); View.AddSubview(map); View.AddSubview(CancelButton); CancelButton.TouchUpInside += (object sender, EventArgs e) => { this.NavigationController.PopViewController(true); }; }