public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { LeaderboardFilterTableCell cell = tableView.DequeueReusableCell(LeaderboardFilterTableCell.Key) as LeaderboardFilterTableCell; cell.Selected = true; cell.UpdateCell(ItemsSource[indexPath.Row]); SelectedItem = indexPath.Row; ParentView.Hidden = true; }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { LeaderboardFilterTableCell cell = tableView.DequeueReusableCell(LeaderboardFilterTableCell.Key) as LeaderboardFilterTableCell; if (cell == null) { return(new UITableViewCell()); } if (indexPath.Row == SelectedItem) { cell.Selected = true; } cell.UpdateCell(ItemsSource[indexPath.Row]); return(cell); }