PINKBindView
PINKBindView提供了一种简单的方式来使用tableView和collectionView,灵感来源于Raywenderlich
使用
例如
[self.tableView setDataSourceSignal:RACObserve(self, list)
selectionCommand:self.selectionCommand
cellNib:CustomTableViewCell.viewNib];
您应该在cell类中实现此方法
- (void)bindCellViewModel:(id)viewModel indexPath:(NSIndexPath *)indexPath displayFlag:(BOOL)displayFlag
您还可以运行示例项目,克隆仓库,并首先在示例目录中运行pod install
。
要求
iOS 6+
安装
PINKBindView可以通过CocoaPods获取。要安装它,只需将以下行添加到Podfile中
pod "PINKBindView"
许可证
PINKBindView 可在 MIT 许可证下使用。有关更多信息,请参阅 LICENSE 文件。