UICollectionViewFlowLayout(FWCollectionViewSectionConfig)

@interface UICollectionViewFlowLayout (FWCollectionViewSectionConfig)

通用布局section配置分类

  • 初始化布局section配置,在prepareLayout调用即可

    Declaration

    Objective-C

    - (void)fw_sectionConfigPrepareLayout;
  • 获取布局section属性,在layoutAttributesForElementsInRect:调用并添加即可

    Declaration

    Objective-C

    - (nonnull NSArray<UICollectionViewLayoutAttributes *> *)
        fw_sectionConfigLayoutAttributesForElementsInRect:(CGRect)rect;