UICollectionView Flashcards

1
Q

In UICollectionView:

Methods called always during layout process?

A
  • prepareLayout
  • collectionViewContentSize
  • layoutAttributesForElementsInRect:
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In UICollectionView:

What is a Supplementary View?

A

Any view that isn’t a cell and display data. Their contents are driven by the data source object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
In UICollectionView:
What class is responsible for displaying one unit of content to a user at a time?
A

UICollectionViewCell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
In UICollectionView:
What class determines the attributes of items and returns that information to the collection view
A

UICollectionViewLayout

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
In UICollectionView:
What class encapsulates all layout-related properties of an item in the collection view?
A

UICollectionViewLayoutAttributes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In UICollectionView:

What is the method from UICollectionViewLayout that returns the attributes of elements in rect?

A

layoutAttributesForElementsInRect:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In UICollectionView:

What is the method from UICollectionViewLayout that returns the attributes of an element at given indexPath?

A

layoutAttributesForItemAtIndexPath:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In UICollectionView:

What is a Decoration View?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

In UICollectionView:

Method used to register a cell into an UICollectionView?

A

registerNib( , forSypplementaryViewOfKind:, withReuseIdrntifier: )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly