CPYGridPagingLayout 0.3.3

A UICollectionViewLayout subclass used to show items like a grid.

Homepage: https://github.com/cielpy/CPYGridPagingLayout

Platform: CocoaPods

Language: Shell

License: MIT

Repository: https://github.com/cielpy/CPYGridPagingLayout.git

View on registry: http://cocoapods.org/pods/CPYGridPagingLayout

Documentation: http://cocoadocs.org/docsets/CPYGridPagingLayout/0.3.3

Install: pod try CPYGridPagingLayout


CPYGridPagingLayout

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.

Releases

0.3.3 January 11, 2017
0.3.2 January 11, 2017
0.3.1 January 11, 2017
0.3.0 January 11, 2017
0.2.4 January 11, 2017
0.2.3 January 11, 2017
0.2.0 January 11, 2017
0.1.2 November 16, 2016
0.1.1 November 11, 2016
0.1.0 November 11, 2016

Project Statistics

SourceRank 0
Dependent repositories 0
Total releases 10
Latest release
First release
Stars 2
Forks 1
Watchers 2
Contributors 1
Repo Size: 91.8 KB

Top Contributors See all

Kevin

Something wrong with this page? Make a suggestion

Export .ABOUT file for this library

Last synced: 2017-03-27 14:19:13 UTC

Login to resync this project