Latest 0.1.0
Homepage https://github.com/coder-zjq/JQCollectionViewAlignLayout
License MIT
Platforms ios 6.0
Authors

Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.
Example

Requirements

iOS 6.0 +

Installation

JQCollectionViewAlignLayout is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'JQCollectionViewAlignLayout'

Usage

// setup the itemAlignment for all sections
JQCollectionViewAlignLayout *layout = [[JQCollectionViewAlignLayout alloc] init];
layout.itemAlignment = JQCollectionViewItemAlignmentLeft;
UICollectionView *collectionView = [[UICollectionView alloc] initWithFrame:self.view.bounds collectionViewLayout:layout];
// setup the itemAlignment for each section
// 1. assign the layout delegate
layout.delegate = self;
// 2. implement the protocol method
- (JQCollectionViewItemAlignment)layout:(JQCollectionViewAlignLayout *)layout itemAlignmentInSection:(NSInteger)section {
  // return the JQCollectionViewItemAlignment in section.
}

Author

coder-zjq, [email protected]

License

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

Latest podspec

{
    "name": "JQCollectionViewAlignLayout",
    "version": "0.1.0",
    "summary": "Align left, center, right and tile UICollectionView layout.",
    "description": "Align left, center, right and tile UICollectionView layout based on UICollectionViewFlowLayout.",
    "homepage": "https://github.com/coder-zjq/JQCollectionViewAlignLayout",
    "screenshots": [
        "https://raw.githubusercontent.com/Coder-ZJQ/JQCollectionViewAlignLayout/master/images/align-left.png",
        "https://raw.githubusercontent.com/Coder-ZJQ/JQCollectionViewAlignLayout/master/images/align-center.png",
        "https://raw.githubusercontent.com/Coder-ZJQ/JQCollectionViewAlignLayout/master/images/align-right.png",
        "https://raw.githubusercontent.com/Coder-ZJQ/JQCollectionViewAlignLayout/master/images/tile.png"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "coder-zjq": "[email protected]"
    },
    "source": {
        "git": "https://github.com/coder-zjq/JQCollectionViewAlignLayout.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source_files": "JQCollectionViewAlignLayout/Classes/**/*"
}

Pin It on Pinterest

Share This