Latest 0.1
License MIT
Platforms ios 8.0, requires ARC

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

[![CI Status]( Bot/MBStaticCollectionView.svg?style=flat)]( Bot/MBStaticCollectionView)


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


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

pod "MBStaticCollectionView"


Mati Bot, [email protected]


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

Latest podspec

    "name": "MBStaticCollectionView",
    "version": "0.1",
    "summary": "Configure UICollectionView static cells directly from the IB just like in UITableView",
    "description": "Configure your static UICollectionView DataSource directly from the IB.nJust add your cells and viola!",
    "homepage": "",
    "screenshots": "",
    "license": "MIT",
    "authors": {
        "Mati Bot": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1"
    "social_media_url": "",
    "platforms": {
        "ios": "8.0"
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "MBStaticCollectionView": [

Pin It on Pinterest

Share This