UICollectionView Flashcards
In UICollectionView:
Methods called always during layout process?
- prepareLayout
- collectionViewContentSize
- layoutAttributesForElementsInRect:
In UICollectionView:
What is a Supplementary View?
Any view that isn’t a cell and display data. Their contents are driven by the data source object.
In UICollectionView: What class is responsible for displaying one unit of content to a user at a time?
UICollectionViewCell
In UICollectionView: What class determines the attributes of items and returns that information to the collection view
UICollectionViewLayout
In UICollectionView: What class encapsulates all layout-related properties of an item in the collection view?
UICollectionViewLayoutAttributes
In UICollectionView:
What is the method from UICollectionViewLayout that returns the attributes of elements in rect?
layoutAttributesForElementsInRect:
In UICollectionView:
What is the method from UICollectionViewLayout that returns the attributes of an element at given indexPath?
layoutAttributesForItemAtIndexPath:
In UICollectionView:
What is a Decoration View?
It act as pure ornamentation. They are owned and managed entirely by the layout object and do not get their contents from the data source.
In UICollectionView:
Method used to register a cell into an UICollectionView?
registerNib( , forSypplementaryViewOfKind:, withReuseIdrntifier: )