SGSStaggeredFlowLayout 0.0.1

SGSStaggeredFlowLayout 0.0.1

测试已测试
语言语言 Obj-CObjective C
许可 MIT
发布上次发布2014 年 12 月

PJ Gray 维护。



  • PJ Gray

UICollectionViewFlowLayout 的子类,用于单元格错位。

截图

Screenshot Screenshot

说明

(查看示例以获取完整源代码)

_flowLayout = [[SGSStaggeredFlowLayout alloc] init];
_flowLayout.layoutMode = SGSStaggeredFlowLayoutMode_Even;
_flowLayout.minimumLineSpacing = 2.0f;
_flowLayout.minimumInteritemSpacing = 2.0f;
_flowLayout.sectionInset = UIEdgeInsetsMake(0.0f, 10.0f, 0.0f, 10.0f);
_flowLayout.itemSize = CGSizeMake(75.0f, 75.0f);

self.internalCollectionView.collectionViewLayout = _flowLayout;

联系

PJ Gray

许可

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