/// <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; }
/// <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); }