public override UITableViewCell GetCell(UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) { var reuseCell = tableView.DequeueReusableCell("SimpleCell"); if (reuseCell == null) { reuseCell = new UITableViewCell(UITableViewCellStyle.Default, "SimpleCell"); } var item = _items [(int)indexPath.IndexAtPosition(1)]; reuseCell.TextLabel.Text = _getter(item); return(reuseCell); }
public override void RowSelected(UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) { var item = _items [(int)indexPath.IndexAtPosition(1)]; onSelected(item); }