GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - uny/UICollectionViewLeftAlignedLayout: A layout for UICollectionView that aligns the cells to the left.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

33 Commits
33 Commits

Folders and files

NameName
Last commit message
Last commit date
Example
Example
 
 
UICollectionViewLeftAlignedLayout.xcodeproj
UICollectionViewLeftAlignedLayout.xcodeproj
 
 
UICollectionViewLeftAlignedLayout
UICollectionViewLeftAlignedLayout
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
UICollectionViewLeftAlignedLayout.podspec
UICollectionViewLeftAlignedLayout.podspec
 
 
screenshot.png
screenshot.png
 
 

Repository files navigation

UICollectionView Left Aligned Layout

A UICollectionViewLayout implementation that aligns the cells to the left.

Check out the twin project UICollectionViewRightAlignedLayout

Installation with CocoaPods

platform :ios, '6.0'

pod 'UICollectionViewLeftAlignedLayout'

Usage

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

CGRect frame = ...
UICollectionViewLeftAlignedLayout *layout = [UICollectionViewLeftAlignedLayout alloc] init];
UICollectionView *leftAlignedCollectionView = [[UICollectionView alloc] initWithFrame:frame collectionViewLayout:layout];

or from Interface Builder:

img needed here

UICollectionViewLeftAlignedLayout 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 UICollectionViewDelegateLeftAlignedLayout protocol that your delegate object can conform to. Is nothing more than an empty extension of UICollectionViewDelegateFlowLayout.

License

UICollectionViewLeftAlignedLayout is released under the MIT license.


Hacked together with passion by @mokagio

About

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

Resources

Readme
License
Activity

Stars

1 star

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.