public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { var cell = tableView.DequeueReusableCell(MyCardsTableViewCell.Key) as MyCardsTableViewCell; var item = TableItems[indexPath.Row]; if (cell == null) { cell = MyCardsTableViewCell.Create(); } cell.BindDataToView(item, true, indexPath); return(cell); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { var cell = tableView.DequeueReusableCell(MyCardsTableViewCell.Key) as MyCardsTableViewCell ?? MyCardsTableViewCell.Create(); var item = GetCardAtIndexPath(indexPath); if (item == null) { return(cell); } cell.BindDataToView(item, false, indexPath); return(cell); }