コード例 #1
0
ファイル: OwnerDrawnElement.cs プロジェクト: 21Off/21Off
		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
ファイル: OwnerDrawnElement.cs プロジェクト: 21Off/21Off
			public OwnerDrawnCellView(CustomOwnerDrawnElement element, CustomOwnerDrawnCell cell)
			{
				this.element = element;
				this.cell = cell;
			}