예제 #1
0
		public override UITableViewCell GetCell (UITableView tv)
		{
			CustomOwnerDrawnCell cell = tv.DequeueReusableCell(this.CellReuseIdentifier) as CustomOwnerDrawnCell;
			
			if (cell == null)
			{
				cell = new CustomOwnerDrawnCell(this, this.Style, this.CellReuseIdentifier)
				{
					SelectionStyle = SelectionStyle,
					Accessory = Accessory,
				};
			}
			else
			{
				cell.Element = this;
			}
			
			cell.Update();
			return cell;
		}	
예제 #2
0
			public OwnerDrawnCellView(CustomOwnerDrawnElement element, CustomOwnerDrawnCell cell)
			{
				this.element = element;
				this.cell = cell;
			}