コード例 #1
0
        public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = (WeekCell)collectionView.DequeueReusableCell(WeekCell.CellID, indexPath);

            WeekElement row = Rows[indexPath.Row];

            cell.UpdateRow(row, 20);

            return(cell);
        }
コード例 #2
0
        public void UpdateRow(WeekElement element, Single fontSize)
        {
            LabelView.Text = element.Week;

            LabelView.Font = UIFont.FromName("HelveticaNeue-Bold", fontSize);
        }