Example #1
0
        public UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            UIImageViewCell cell = (UIImageViewCell)collectionView.DequeueReusableCell(UIImageViewCell.CellId, indexPath);

            cell.ImageView.Image = Photos[indexPath.Row];
            return(cell);
        }
        public UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            UIImageViewCell cell = (UIImageViewCell)collectionView.DequeueReusableCell(imageViewCellId, indexPath);

            manager.RequestImageForAsset((PHAsset)fetchResults[indexPath.Item], new CGSize(240f, 240f),
                                         PHImageContentMode.AspectFill, new PHImageRequestOptions(), (img, info) => {
                cell.ImageView.Image = img;
            });

            return(cell);
        }