public void RowSelected(UIKit.UITableView tableView, Foundation.NSIndexPath indexPath) { if (this.AutoCompleteTableAppearsAsKeyboardAccessory) { this.closeAutoCompleteTableView (); } var cell = tableView.CellAt (indexPath); string autoCompleteString = cell.TextLabel.Text; this.Text = autoCompleteString; var autoCompleteObject = this.AutoCompleteSuggestions[indexPath.Row]; if (autoCompleteObject != null && autoCompleteObject is MLPAutoCompletionObject) { this.autoCompleteDelegate.AutoCompleteTextField (this, autoCompleteString,(MLPAutoCompletionObject) autoCompleteObject, indexPath); } this.finishedSearching (); }
public override void Selected(DialogViewController dvc, UIKit.UITableView tableView, Foundation.NSIndexPath path) { tableView.DeselectRow(path, animated: true); var newViewController = this.MakeViewController(); this.PrepareDialogViewController(newViewController); this.popoverViewController = new UIPopoverController(newViewController); var selectedCell = tableView.CellAt(path); popoverViewController.PresentFromRect(selectedCell.Frame, dvc.View, this.getArrowDirection(), animated: true); }