Giter VIP home page Giter VIP logo

algreversedflowlayout's Introduction

ALGReversedFlowLayout

Version License Platform

ALGReversedFlowLayout is a subclass of UICollectionViewFlowLayout which lays out its items bottom-to-top instead of top-to-bottom.

Usage

To run the example project, just do pod try https://github.com/algal/ALGReversedFlowLayout.git. Run the example project in the simulator with a 4" device. Play with the switches in the example project to compare it to the normal flow layout, and to see the effect of the two configurable properties expandsContentSizeToBounds and minimumContentSizeHeight.

To use it in your app, just programatically instatiate this class exactly as you would UICollectionViewFlowLayout. Or if you are creating your layout in Interface Builder, then select the layout object in your storyboard or nib and use the Identity Inspector to set the class ALGReversedFlowLayout instead of UICollectionViewFlowLayout.

Requirements

This should require only iOS6 or higher. (But I have only tested in iOS7.)

Installation

There are two ways to use the library in your project:

  1. Manually add the library files to your project:

    ALGReversedFlowLayout.h ALGReversedFlowLayout.m

  2. Using CocoaPods

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

pod "ALGReversedFlowLayout"

Author

Alexis Gallagher, [email protected]

License

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

algreversedflowlayout's People

Contributors

algal avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.