Exemplo n.º 1
0
            public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
            {
                var cell = (DemoTableViewCell)tableView.DequeueReusableCell("DemoTableViewCell");

                if (cell == null)
                {
                    cell = new DemoTableViewCell();
                }

                var item = _owner._items[indexPath.Row];

                cell.Init(item);

                return(cell);
            }
Exemplo n.º 2
0
				public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
				{
					var cell = (DemoTableViewCell)tableView.DequeueReusableCell("DemoTableViewCell");
					if (cell==null)
					{
						cell = new DemoTableViewCell();
					}

					var item = _owner._items[indexPath.Row];
					cell.Init(item);

					return cell;
				}