public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { UITableViewCell cell = tableView.DequeueReusableCell("SearchResultCell"); SearchResultCellController controller = null; if (cell == null) { controller = new SearchResultCellController(); cell = controller.Load(_torrents[indexPath.Row]); cell.Tag = _id++; _controllers[cell.Tag] = controller; } else { controller = _controllers[cell.Tag]; controller.Load(_torrents[indexPath.Row]); } return cell; }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { UITableViewCell cell = tableView.DequeueReusableCell("SearchResultCell"); SearchResultCellController controller = null; if (cell == null) { controller = new SearchResultCellController(); cell = controller.Load(_torrents[indexPath.Row]); cell.Tag = _id++; _controllers[cell.Tag] = controller; } else { controller = _controllers[cell.Tag]; controller.Load(_torrents[indexPath.Row]); } return(cell); }