CTCustomTableViewCell 2

CTCustomTableViewCell 2

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

Maintained by Unclaimed.



  • 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;