Latest 0.3.3
Homepage https://github.com/cielpy/CPYGridPagingLayout
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

CI Status
Version
License
Platform

Overview

CPYGridPagingLayout is a UICollectionViewLayout subclass used to show items like a grid.

Features

  • Both horizontal and vertical layout support
  • Customized number of line and colum
  • Customized item spacing and line spacing
  • Responsive UI support, you can change custom options anytime
  • IBInspectable support

Usage

    CPYGridPagingLayout *layout = [[CPYGridPagingLayout alloc] init];
    layout.numberOfColum = 5;
    layout.numberOfLine = 3;
    layout.itemSpacing = 10;
    layout.lineSpacing = 10;
    layout.direction = CPYGridPagingLayoutDirectionVertical;

    UICollectionView *collectionView = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:layout];
    collectionView.dataSource = self;
    collectionView.delegate = self;
    [self.view addSubview:collectionView];

//    you can use autolayout to layout the collection view here

//    and then you can change the layout's custom options if you need

Installation

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

pod "CPYGridPagingLayout"

You can install CPYGridPagingLayout with Carthage too, just write this line to your Cartfile:

github "cielpy/CPYGridPagingLayout"

then follow the official tutorial to config your project.

Contact

Cielpy, [email protected]

License

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

Latest podspec

{
    "name": "CPYGridPagingLayout",
    "version": "0.3.3",
    "summary": "A UICollectionViewLayout subclass used to show items like a grid.",
    "description": "CPYGridPagingLayout is a UICollectionViewLayout subclass used to show items like a grid. Both vertical and horizontal layout suppport, item spacing and line spacing can be costomized.",
    "homepage": "https://github.com/cielpy/CPYGridPagingLayout",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Cielpy": "[email protected]"
    },
    "source": {
        "git": "https://github.com/cielpy/CPYGridPagingLayout.git",
        "tag": "0.3.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "CPYGridPagingLayout/Classes/**/*",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This