CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Feb 2018 |
Maintained by ‘QiuLiangXiong’ .
本库已经配置到cocoapods。
在podfile文件中加入 pod 'UICollectionView-QLX', '~> 2.0.0' 或 pod "UICollectionView-QLX"
使用 pod install即可一键引入
一款基于UICollectionView扩展,告别繁琐的代理,一个数组就能搞定数据源,数组自动同步视图, 更好用的UICollectionView。
创建UICollectionView
{
UICollectionView * collectionView = [UICollectionView qlx_createForFlowLayout];
collectionView.frame = self.view.bounds;
collectionView.delegate = self;
collectionView.qlx_dataSource = self;
[self.view addSubview:collectionView];
}
//实现数据源代理
#pragma mark - QLXCollectionViewDataSource
- (NSArray<QLXSectionData *> *)qlx_sectionDataListWithCollectionView:(UICollectionView *)collectionView{
return self.dataList;
}
//提供数据
QLXSectionData * sectionData = [QLXSectionData new];
sectionData.cellDataList = cellDataList;
sectionData.headerData = headerView;//支持view 也支持data
sectionData.decorationData = [ADecroationView class];
sectionData.footerData = [ACollectionViewFooterData new];
self.dataList = @[sectionData];
//更多使用方法下载Demo学习...pod 'UICollectionView-QLX'。pod install 或 pod update。UICollectionView+QLX.h。UICollectionView+QLX.h。你可以在 CocoaDocs 查看在线 API 文档,也可以用 appledoc 本地生成文档。
该项目最低支持 iOS 7.0 和 Xcode 8.0。
UICollectionView-QLX 使用 MIT 许可证,详情见 LICENSE 文件。