コード例 #1
0
        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;
        }
コード例 #2
0
        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);
        }