public void showEditor(UIView fromView) { CustomerInformationViewController customerSearch; popover = new UIPopoverController(new UINavigationController(customerSearch = new CustomerInformationViewController { Customer = Invoice.Customer, Created = (c) => { Invoice.Customer = c; popover.Dismiss(true); popover.Dispose(); } }) { NavigationBar = { BarStyle = UIBarStyle.BlackTranslucent, } }); customerSearch.Popover = popover; popover.PresentFromRect(fromView.Frame, tableView, UIPopoverArrowDirection.Right, true); }
public void showEditor(UIView fromView) { CustomerInformationViewController customerSearch; popover = new UIPopoverController (new UINavigationController (customerSearch = new CustomerInformationViewController { Customer = Invoice.Customer, Created = (c) => { Invoice.Customer = c; popover.Dismiss (true); popover.Dispose (); } }) { NavigationBar = { BarStyle = UIBarStyle.BlackTranslucent, } }); customerSearch.Popover = popover; popover.PresentFromRect (fromView.Frame, tableView, UIPopoverArrowDirection.Right, true); }