Latest 0.0.1
Homepage https://github.com/pj4533/SGSStaggeredFlowLayout
License MIT
Platforms ios 6.0, requires ARC
Authors

UICollectionViewFlowLayout subclass for staggering cells.

Screenshots

SGSStaggeredFlowLayoutMode_Even:

Screenshot

SGSStaggeredFlowLayoutMode_Centered:

Screenshot

Instructions

Install

Available on CocoaPods, simply add to your Podfile:

pod "SGSStaggeredFlowLayout"

then do a ‘pod install’

Code

(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.

Latest podspec

{
    "name": "SGSStaggeredFlowLayout",
    "version": "0.0.1",
    "summary": "UICollectionViewFlowLayout for staggering cells.",
    "homepage": "https://github.com/pj4533/SGSStaggeredFlowLayout",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "PJ Gray": "[email protected]"
    },
    "source": {
        "git": "https://github.com/pj4533/SGSStaggeredFlowLayout.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source_files": "SGSStaggeredFlowLayout",
    "requires_arc": true
}

Pin It on Pinterest

Share This