UICollectionViewCell(FWUIKit)

@interface UICollectionViewCell (FWUIKit)

/// 获取当前所属collectionView
@property (nonatomic, weak, readonly, nullable) UICollectionView *fw_collectionView NS_REFINED_FOR_SWIFT;

/// 获取当前显示indexPath
@property (nonatomic, readonly, nullable) NSIndexPath *fw_indexPath NS_REFINED_FOR_SWIFT;

@end

Undocumented

  • 获取当前所属collectionView

    Declaration

    Objective-C

    @property (nonatomic, weak, readonly, nullable) UICollectionView *fw_collectionView;
  • 获取当前显示indexPath

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSIndexPath *fw_indexPath;