CocoaPods trunk is moving to be read-only. Read more on the blog, there are 11 months to go.

ImoDynamicTableView 2.4.0

ImoDynamicTableView 2.4.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Feb 2016

Maintained by Borinschi Ivan.



  • By
  • imodeveloper

Usage

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

Requirements

iOS 7.1

Installation

Example implementation

Usee Cell & CellSource Template to make your implementation easyer.

This is how implementation in view controller looks like

@implementation ImoReadmeViewController

- (void)viewDidLoad
{
  [super viewDidLoad];

  NSMutableArray *tableSection = [NSMutableArray new];

  for (int i = 0; i < 100; i++) {

      ImoReadmeCellSource *source = [ImoReadmeCellSource new];

      /*
      In this case we have static height for cell, but if you want you can use autolayout 
      for in your cell and then the height of the cell will be automaticaly caluculated.
      */
      source.staticHeightForCell = 45;

      /*
      Generate a random name
      */
      source.title = [LoremIpsum name]; 

      /*
      IBOutlet from your tableView wich need to be ImoDynamicTableView class
      */  
      [tableSection addObject:source];
  }

  [self.tableView.source addObject:tableSection];
}

@end

Author

Borinschi Ivan, [email protected]

License

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