Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c796c36
commit 3ce6e74
Showing
4 changed files
with
48 additions
and
21 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# UICollectionView Custom Layout: the Ultimate Tutorial | ||
|
||
This project shows the basics about how to create a custom `UICollectionViewFlowLayout` for a `UICollectionView`. | ||
|
||
To cover most of the configurations you can encounter while working on a `UICollectionView`, I created 3 sections with 3 different layouts: | ||
- section 1: a cell with fixed size | ||
- section 2: a cell with a fixed width and a dynamic length | ||
- sections 3 & 4: multiple cells aligned on a grid, with fixed size | ||
|
||
I also added resizable headers in the sections 3 and 4. | ||
|
||
![Video of the custom layout](https://github.com/strawberrycode/SCCollectionViewCustomLayout/blob/master/Images/SCCollectionViewCustomLayout.mp4) | ||
|
||
|
||
## Tutorials | ||
|
||
You will find all the details about the project in 2 tutorials: | ||
- [UICollectionView Custom Layout: the Ultimate Tutorial - Part 1](http://bit.ly/1TNFd1m): how to create the `UICollectionView`. It's an easy prerequisite for Part 2. | ||
- [UICollectionView Custom Layout: the Ultimate Tutorial - Part 2](http://bit.ly/20Q1bPZ): how to create the `UICollectionViewFlowLayout`... and how it works! | ||
|
||
## Compatibility | ||
|
||
This project works on all iPhones and iPad (portrait, landscape, and with multitasking). Give it a try! | ||
|
||
## Contact | ||
|
||
You can ping me on Twitter [@cath_schwz](https://twitter.com/cath_schwz), open an issue on GitHub or leave a comment on my blog [strawberrycode.com](http://bit.ly/1TNFd1m) :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters