Пример #1
0
        public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            ImageCell imageCell = (ImageCell)collectionView.DequeueReusableCell(cellId, indexPath);

            imageCell.UpdateImage(monkeys [indexPath.Row].ImageFile);

            return(imageCell);
        }
Пример #2
0
        public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            // get an ImageCell from the pool. DequeueReusableCell will create one if necessary
            ImageCell imageCell = (ImageCell)collectionView.DequeueReusableCell(cellId, indexPath);

            // update the image for the speaker
            imageCell.UpdateImage(monkeys [indexPath.Row].ImageFile);

            return(imageCell);
        }