public override void RowSelected(UITableView tableView, Foundation.NSIndexPath indexPath) { int section = indexPath.Section; int row = indexPath.Row; this.list.SelectedItem = data[section][row]; if (selectedCell != null) { selectedCell.SetHighlighted(false, true); } selectedCell = (CustomTableViewCell)tableView.CellAt(indexPath); selectedCell.SetHighlighted(true, true); }
public override UITableViewCell GetCell(UITableView tableView, Foundation.NSIndexPath indexPath) { int section = indexPath.Section; int row = indexPath.Row; CustomTableViewCell cell = (CustomTableViewCell)tableView.DequeueReusableCell("demos"); if (cell == null) { cell = new CustomTableViewCell(UITableViewCellStyle.Default, "demos"); cell.SelectionStyle = UITableViewCellSelectionStyle.None; } cell.TextLabel.Text = data[section][row].Title; return(cell); }