November 2013
Intermediate to advanced
576 pages
19h 3m
English
Custom layouts can be created for collection views that do not fit well into a grid format. In the sample app tap Custom Layout from the main menu to see an example of a layout that is more complex than a grid format. This layout presents images from the photo library in a continuous sine curve, even between section breaks as shown in Figure 20.10.
Figure 20.10 Sample app: custom layout example.
To create a subclass of UICollectionViewLayout, several methods need to be implemented:
The collectionViewContentSize method ...
Read now
Unlock full access