public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { // Reuse a cell if one exists CartridgeListCell cell = tableView.DequeueReusableCell("CartridgeListCell") as CartridgeListCell; if (cell == null) { // We have to allocate a cell cell = new CartridgeListCell(); } // Set initial data if (cartList != null && cartList.Count > indexPath.Row) { cell.UpdateData(cartList [indexPath.Row]); } return(cell); }
public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath) { // Reuse a cell if one exists CartridgeListCell cell = tableView.DequeueReusableCell ("CartridgeListCell") as CartridgeListCell; if (cell == null) { // We have to allocate a cell cell = new CartridgeListCell(); } // Set initial data if (cartList != null && cartList.Count > indexPath.Row) { cell.UpdateData (cartList [indexPath.Row]); } return cell; }