Example #1
0
        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);
        }
Example #2
0
        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);
        }