Latest 0.1.1
Homepage https://github.com/rickytan/RTPagedCollectionViewLayout
License MIT
Platforms ios 6.0, requires ARC
Frameworks UIKit, Foundation
Authors

CI Status
Version
License
Platform

Usage

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

With Interface Builder

  1. Setup custom UICollectionViewLayout

    Custom Layout

  2. Setup params

    Params

With Code

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    CGFloat width = self.view.bounds.size.width;
    RTPagedCollectionViewLayout *layout = [[RTPagedCollectionViewLayout alloc] init];
    layout.columns = 3;
    layout.rows = 2;
    layout.itemSize = CGSizeMake(30, 30);
    UICollectionView *collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, width, 240)
                                                          collectionViewLayout:layout];
    [self.view addSubview:collectionView];
}

ScreenShot

Requirements

  • iOS 6 and up

Installation

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

pod "RTPagedCollectionViewLayout"

Author

Ricky Tan, [email protected]

License

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

Latest podspec

{
    "name": "RTPagedCollectionViewLayout",
    "version": "0.1.1",
    "summary": "A paged collection view",
    "description": "A paged collection view for listing a set of items to picking, sortingnfrom left to right, top to bottom, and scroll from left to right",
    "homepage": "https://github.com/rickytan/RTPagedCollectionViewLayout",
    "license": "MIT",
    "authors": {
        "benfen": "[email protected]"
    },
    "source": {
        "git": "https://github.com/rickytan/RTPagedCollectionViewLayout.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "public_header_files": "Pod/Classes/**/*.h",
    "frameworks": [
        "UIKit",
        "Foundation"
    ]
}

Pin It on Pinterest

Share This