示例#1
0
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            var cell = tableView.DequeueReusableCell(CellIdentifier) as ContactRowCell;

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

            switch (indexPath.Row)
            {
            case 0:
                cell.Label.Text = "Name";
                break;

            case 1:
                cell.Label.Text = "Industry";
                break;

            case 2:
                cell.Label.Text = "Phon";
                break;

            case 3:
                cell.Label.Text = "Website";
                break;

            case 4:
                cell.Label.Text = "Account#";
                break;
            }
            return(cell);
        }
示例#2
0
		public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath)
		{
			var cell = tableView.DequeueReusableCell (CellIdentifier) as ContactRowCell;
			if (cell == null) {
				cell = new ContactRowCell ();
			}

			switch (indexPath.Row) {
			case 0:
				cell.Label.Text = "Name";
				break;
			case 1:
				cell.Label.Text = "Industry";
				break;
			case 2:
				cell.Label.Text = "Phon";
				break;
			case 3:
				cell.Label.Text = "Website";
				break;
			case 4:
				cell.Label.Text = "Account#";
				break;
			}
			return cell;
		}