UICollectionView

class UICollectionView : UIScrollView, UIDataSourceTranslating
  • Dequeues a reusable collection view cell.

    Declaration

    Swift

    public func dequeueReusableCell<T>(forIndexPath indexPath: IndexPath) -> T where T : ReusableView

    Parameters

    indexPath

    The index path.

    Return Value

    The collection view cell.

  • Registers the collection view cell with its reuseidentifier.

    Declaration

    Swift

    public func registerCell<T>(cellClass: T.Type) where T : ReusableView