public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { BookCell cell = tableView.DequeueReusableCell(CELL_IDENTIFIER, indexPath) as BookCell; var item = viewModel.Items[indexPath.Row]; cell.Configure(item); cell.LayoutMargins = UIEdgeInsets.Zero; return(cell); }
public void UpdateCellInCaroselView(CaroselCell cell, int row) { BookCell bookCell = cell as BookCell; bookCell.bookTitle.text = "Book " + row; }
public void RemoveCell(BookCell cell) { Destroy(cell.gameObject); cells.Remove(cell); }
private void OnDisable() { cell = null; }
// Start is called before the first frame update public void SetModel(BookCell book) { cell = book; input.text = book.model.content; }