コード例 #1
0
		public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath)
		{
			var cell = tableView.DequeueReusableCell (DSComponentsMenuControllerCell.Key) as DSComponentsMenuControllerCell;
			if (cell == null)
				cell = new DSComponentsMenuControllerCell ();
			
			// TODO: populate the cell with the appropriate data based on the indexPath
			cell.TextLabel.Text = "DSGridView";
			cell.Accessory = UITableViewCellAccessory.DisclosureIndicator;

			return cell;
		}
コード例 #2
0
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            var cell = tableView.DequeueReusableCell(DSComponentsMenuControllerCell.Key) as DSComponentsMenuControllerCell;

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

            // TODO: populate the cell with the appropriate data based on the indexPath
            cell.TextLabel.Text = "DSGridView";
            cell.Accessory      = UITableViewCellAccessory.DisclosureIndicator;

            return(cell);
        }