Collection Views - ParkinT/RubyMotion_Life GitHub Wiki
It iss even simpler than UITableViews; the implementation has well-defined roles and responsibilities.
- UICollectionViewController: brings your models and views together, just like UITableViewController
- UICollectionViewLayout: determines the placement of cells, supplementary views, and decoration views inside the collection view
- UICollectionViewLayoutAttributes: manages the attributes for your collections views [here is where you can animate it, do things like overflow effect]
- UICollectionViewCell: the cell is just a view
Check out this Collection View Playground.
According to the author, "I believe you'll not find better UICollectionView example for Rubymotion than this." And it is difficult to argue that!!