예제 #1
0
        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;
        }
예제 #2
0
        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);
        }