UICollectionViews got introduced in iOS 6 and ship already with the ready to use UICollectionViewLayout, which is absolutely nice for grid and line layouts.
But there are other, really nice layouts possible with UICollectionViews, so the purpose of this project is:
- learn how to build custom layouts
- collect all layouts in one place
This is Layout is rewritten from Apples WWDC 2012 Seesion "Advanced Collection Views and Building Custom Layouts"
https://developer.apple.com/videos/wwdc/2012/?include=219
A simple circle layout with an initial cell count of 20 items.
A tap gesture recognizer handles the add and delete actions.
Tapping on a cell deletes it, tapping on the background adds an item.
Files:
CircleViewLayout.h
CircleViewLayout.m
- implemented circle layout
MIT. do what you want.