Skip to content

MatiBot/MBStaticCollectionView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MBStaticCollectionView

Define static UICollectionViewCells only in the Interface Builder without the need to implement a datasource, just like in UITableViewController.

[![CI Status](http://img.shields.io/travis/Mati Bot/MBStaticCollectionView.svg?style=flat)](https://travis-ci.org/Mati Bot/MBStaticCollectionView) Version License Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

How to use

  1. Add a UICollectionView to your UIViewController or add a UICollectionViewController
  2. Configure the custom class of the UICollectionView to be MBStaticCollectionView
  3. Add Prototype cells to the UICollectionView from the Interface Builder and define their Reuse Identifier. Keep in mind that the Reuse Identifiers should be different for every cell and should be increasing in the same order you wish your cell will be displayed (Cell1, Cell2, .. for example)
  4. Enjoy

Installation

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

pod "MBStaticCollectionView"

Author

Mati Bot, matibot@gmail.com

License

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

About

Make static UICollectionViewCells possible just like in UITableViewController, without the need to define a datasource!:large_orange_diamond:

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published