ImoDynamicTableView 2.4.0

ImoDynamicTableView 2.4.0

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布时间最后发布2016年2月

Borinschi Ivan 维护。



  • imodeveloper

使用方法

要运行示例项目,请克隆仓库名,然后首先在 Example 目录下运行 pod install

所需条件

iOS 7.1

安装

示例实现

使用 Cell & CellSource 模板 来简化您的实现。

以下是视图中控制器实现的示例

@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

作者

Borinschi Ivan,[email protected]

许可证

ImoDynamicTableView 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。