Latest 0.0.3
Homepage https://github.com/mokagio/UICollectionViewRightAlignedLayout
License MIT
Platforms ios 6.0, requires ARC
Authors

UICollectionView Right Aligned Layout

A UICollectionViewLayout implementation that aligns the cells to the right.

UICollectionViewRightAlignedLayout

Check out the twin project UICollectionViewLeftAlignedLayout

Installation with CocoaPods

platform :ios, '6.0'

pod 'UICollectionViewRightAlignedLayout'

Usage

Simply set UICollectionViewRightAlignedLayout as the layout object for your collection view either via code:

CGRect frame = ...
UICollectionViewRightAlignedLayout *layout = [UICollectionViewRightAlignedLayout alloc] init];
UICollectionView *RightAlignedCollectionView = [[UICollectionView alloc] initWithFrame:frame collectionViewLayout:layout];

or from Interface Builder:

img needed here

UICollectionViewRightAlignedLayout is a subclass of UICollectionViewFlowLayout, so your collection view delegate can use all the delegate methods of UICollectionViewDelegateFlowLayout.

For those of you who like consistency there is an UICollectionViewDelegateRightAlignedLayout protocol that your delegate object can conform to. Is nothing more than an empty extension of UICollectionViewDelegateFlowLayout.

License

UICollectionViewRightAlignedLayout is released under the MIT license.


Hacked together with passion by @mokagio

Latest podspec

{
    "name": "UICollectionViewRightAlignedLayout",
    "version": "0.0.3",
    "summary": "A layout for UICollectionView that aligns the cells to the right.",
    "description": "A `UICollectionViewLayout` implementation that aligns the cells to the right.nnIt uses `UICollectionViewFlowLayout` under the hood.",
    "homepage": "https://github.com/mokagio/UICollectionViewRightAlignedLayout",
    "screenshots": "https://raw.githubusercontent.com/mokagio/UICollectionViewRightAlignedLayout/master/screenshot.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Giovanni Lodi": "[email protected]"
    },
    "social_media_url": "http://twitter.com/mokagio",
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/mokagio/UICollectionViewRightAlignedLayout.git",
        "tag": "0.0.3"
    },
    "source_files": "UICollectionViewRightAlignedLayout",
    "requires_arc": true
}

Pin It on Pinterest

Share This