uic

UICollectionViewRightAlignedLayout

A layout for UICollectionView that aligns the cells to the right.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

163

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

0

License

MIT

Categories

Readme

UICollectionView Right Aligned Layout

A UICollectionViewLayout implementation that aligns the cells to the right.

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial