March 2014
Intermediate to advanced
672 pages
40h 11m
English
The scrollDirection property controls whether sections are lined up horizontally (UICollectionViewScrollDirectionHorizontal) or vertically (UICollectionViewScroll-DirectionVertical). Figure 10-1 demonstrates otherwise identical layouts with horizontal (left) and vertical (right) flows. The members of each grouped section wrap to available space, based on the current flow. Because there is more vertical space than horizontal space in the iPhone portrait presentation, section groups are longer and thinner in the horizontal flow than in the vertical flow.
Figure 10-1 Horizontal (left) and vertical (right) flows determine a collection ...
Read now
Unlock full access