SGSStaggeredFlowLayout 0.0.1

SGSStaggeredFlowLayout 0.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by PJ Gray.



  • By
  • PJ Gray

UICollectionViewFlowLayout subclass for staggering cells.

Screenshots

Screenshot Screenshot

Instructions

(See example for full source)

_flowLayout = [[SGSStaggeredFlowLayout alloc] init];
_flowLayout.layoutMode = SGSStaggeredFlowLayoutMode_Even;
_flowLayout.minimumLineSpacing = 2.0f;
_flowLayout.minimumInteritemSpacing = 2.0f;
_flowLayout.sectionInset = UIEdgeInsetsMake(0.0f, 10.0f, 0.0f, 10.0f);
_flowLayout.itemSize = CGSizeMake(75.0f, 75.0f);

self.internalCollectionView.collectionViewLayout = _flowLayout;

Contact

PJ Gray

License

SGSStaggeredFlowLayout is available under the MIT license. See the LICENSE file for more info.