internal NSIndexPath IndexPathForCell(UICollectionView collectionView, UICollectionViewCell cell) { if (ReferenceEquals(cell, _lastCreatedCell)) { return(_lastCreatedCellPath); } return(collectionView.IndexPathForCell(cell)); }
public static NSIndexPath IndexPathForCellEx(this UICollectionView collectionView, UICollectionViewCell cell) { Should.NotBeNull(collectionView, "collectionView"); var sourceBase = collectionView.Source as CollectionViewSourceBase; if (sourceBase == null) { return(collectionView.IndexPathForCell(cell)); } return(sourceBase.IndexPathForCell(collectionView, cell)); }
internal NSIndexPath IndexPathForCell(UICollectionView collectionView, UICollectionViewCell cell) { if (ReferenceEquals(cell, _lastCreatedCell)) return _lastCreatedCellPath; return collectionView.IndexPathForCell(cell); }