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.
To create a subclass of
UICollectionViewLayout, several methods need to be implemented:
collectionViewContentSize method ...