Exemplo n.º 1
0
		/// <summary>
		/// Called by the TableView to get the actual UITableViewCell to render for the particular row
		/// </summary>
		public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath)
		{
			// request a recycled cell to save memory
			CustomVegeCell cell = tableView.DequeueReusableCell (cellIdentifier) as CustomVegeCell;

			// if there are no cells to reuse, create a new one
			if (cell == null) {
				cell = new CustomVegeCell (cellIdentifier);
			}

			cell.UpdateCell (tableItems[indexPath.Row].Heading
							, tableItems[indexPath.Row].SubHeading
							, UIImage.FromFile ("Images/" +tableItems[indexPath.Row].ImageName) );
			
			return cell;
		}
Exemplo n.º 2
0
        /// <summary>
        /// Called by the TableView to get the actual UITableViewCell to render for the particular row
        /// </summary>
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            // request a recycled cell to save memory
            CustomVegeCell cell = tableView.DequeueReusableCell(cellIdentifier) as CustomVegeCell;

            // if there are no cells to reuse, create a new one
            if (cell == null)
            {
                cell = new CustomVegeCell(cellIdentifier);
            }

            cell.UpdateCell(tableItems[indexPath.Row].Heading
                            , tableItems[indexPath.Row].SubHeading
                            , UIImage.FromFile("Images/" + tableItems[indexPath.Row].ImageName));

            return(cell);
        }