Latest 1.0.0
Homepage https://github.com/KogiMobileSAS/CellRegistrable
License MIT
Platforms ios 8.0

Version
License
Platform

CellRegistrable is a library that adds a simple way to register your cells to UITableView and UICollectionView.

Installation

pod 'CellRegistrable', '~> 1.0'

Usage

import CellRegistrable

override func viewDidLoad() {
    super.viewDidLoad()

    tableView.registerCell(ExampleTableViewCell)
}

func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {

        let cell = tableView.dequeueReusableCellWithIdentifier(
            ExampleTableViewCell.reuseIdentifier,
            forIndexPath: indexPath)

        // Configure your cell

        return cell
    }

NOTE: This library has a default implementation that uses the name of the cell class for the reuseIdentifier and assumes the nib name is the same as the reuseIdentifier, in case your nib name is different you can either return the name of your nib in the reuseIdentifier variable or return your nib implementing the nib variable in your cell.

License

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

Latest podspec

{
    "name": "CellRegistrable",
    "version": "1.0.0",
    "license": "MIT",
    "summary": "Adds a simple way to register your cells to `UITableView` and `UICollectionView`",
    "homepage": "https://github.com/KogiMobileSAS/CellRegistrable",
    "social_media_url": "https://twitter.com/kogimobile",
    "authors": "Kogi Mobile",
    "source": {
        "git": "https://github.com/KogiMobileSAS/CellRegistrable.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Source/*.swift"
}

Pin It on Pinterest

Share This