Giter Site home page Giter Site logo

lingzt / drcollectionviewtablelayout-ios Goto Github PK

View Code? Open in Web Editor NEW

This project forked from darrarski/drcollectionviewtablelayout-ios

0.0 2.0 0.0 343 KB

UICollectionView 2d-table / grid / spreadsheet layout

Home Page: http://darrarski.pl/collection-view-table-layout-ios/

License: MIT License

Ruby 0.98% Objective-C 99.02%

drcollectionviewtablelayout-ios's Introduction

DRCollectionViewTableLayout

UICollectionViewLayout for displaying 2D tables, similar to those in spreadsheets. Library contains layout class and DRCollectionViewTableLayoutManager that acts as a proxy and allows to configure collection view, and propagate it with data in easy way. For example implementation, checkout attached demo project.

Tested under iOS 7, should work on iOS 6 (check reported issues if you are planning to support iOS 6).

Demo project is configured to display a table with column and row headers. Each cell has randomly generated color. Labels in cells contains UICollectionView indexPath for given cell, as well as layout's column and row number. Labels in headers contains UICollectionView section number, and layout's column/row number.

DRCollectionViewTableLayout screenshot 1

DRCollectionViewTableLayout alows you to easily setup floating headers for columns as well as rows. Sticky headers behaviour is similar to UITableView headers.

DRCollectionViewTableLayout screenshot 2

Installation

You can install the library using CocoaPods. To do so, you will need to add one of the following lines to your Podfile:

For stable release (recommended):

pod 'DRCollectionViewTableLayout', '~> 1.0.5'

Which creates dependency for version >= 1.0.5 and < 1.1

For most recent or exact development version (not recommended on production):

pod 'DRCollectionViewTableLayout', :git => 'https://github.com/darrarski/DRCollectionViewTableLayout-iOS.git', :tag => 'VERSION_TAG'

Where VERSION_TAG you should put tag name for given version (ex. "1.0.5"). It is recommended to set version explicity instead of using most recent version, as backward compatibility is not warranted.

Usage

Public methods of the library are documented in-code. For detailed examples check out attached demo project.

License

Code in this project is available under the MIT license.

Credits

The library is using concepts from:

drcollectionviewtablelayout-ios's People

Contributors

darrarski avatar kevin-zqw avatar

Watchers

James Cloos avatar Ling Z 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.