Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ashfurrow/uicollectionviewflowlayoutexample

UICollectionViewFlowLayout Example
https://github.com/ashfurrow/uicollectionviewflowlayoutexample

Last synced: about 2 months ago
JSON representation

UICollectionViewFlowLayout Example

Awesome Lists containing this project

README

        

# `UICollectionViewFlowLayout` Example

This is a small app that shows yo how to use simple `UICollectionViewFlowLayout` sublcasses and transition between them. You can get a lot of really nice layouts without any further modification than `init`.

Demonstrates:
- Custom `UICollectionViewFlowLayout` subclasses.
- How to implement `UICollectionViewCell` subclasses.
- How to change layouts (with animation).
- How to set up a collection view without a `.xib` or Storyboard.

More notes [here](http://ashfurrow.com/blog/uicollectionview-example-with-uicollectionviewflowlayout).

See a Swift implementation of this project [here](https://github.com/EduardLev/UICollectionViewFlowLayoutExample_Swift)

![Small layout](http://static.ashfurrow.com.s3.amazonaws.com/github/UICollectionViewExampleSmall.png)
![Large layout](http://static.ashfurrow.com.s3.amazonaws.com/github/UICollectionViewExampleLarge.png)