CTCustomTableViewCell 2

CTCustomTableViewCell 2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total193
Week0
Month0

Installs

Apps7
powered by Segment

GitHub

Stars4
Watchers1
Forks0
Issues0
Contributors1
Pull Requests0

Code

Files2
LOCLines of Code 44


  • By
  • Stefan Kendall

CustomTableViewCell

Simple superclass for custom tableview cells that works on convention and removes the need for a lot of code.

Creating a custom tableview cell

  1. Create a subclass of CTCustomTableViewCell.
  2. Create a xib with a single UITableViewCell instance, and set its ReuseIdentifer to the class name. Set the class to the subclass you created in step 1.
  3. In your UITableViewDataSource, use this:
    MyCustomCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MyCustomCell"];

    if (cell == nil ) {
        cell = [MyCustomCell create];
    }

    //config 

    return cell;