public override UIView GetViewForHeader(UITableView tableView, nint section) { var cell = (AuthViewCell)tableView.DequeueReusableCell(CellIdentifier); if (cell == null) { cell = new AuthViewCell(CellIdentifier); } cell.ContentView.BackgroundColor = UIColor.FromRGB(210, 210, 210); return(cell); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { var cell = (AuthViewCell)tableView.DequeueReusableCell(CellIdentifier); var coin = coinList[indexPath.Row]; //---- if there are no cells to reuse, create a new one if (cell == null) { cell = new AuthViewCell(CellIdentifier); } cell.ContentView.BackgroundColor = UIColor.White; cell.UpdateCell(coin); return(cell); }