UICollectionViewCell(FWDynamicLayout)
@interface UICollectionViewCell (FWDynamicLayout)
/// 免注册创建UICollectionViewCell,内部自动处理缓冲池
+ (instancetype)cellWithCollectionView:(UICollectionView *)collectionView
indexPath:(NSIndexPath *)indexPath;
/// 免注册创建UICollectionViewCell,内部自动处理缓冲池,指定reuseIdentifier
+ (instancetype)cellWithCollectionView:(UICollectionView *)collectionView
indexPath:(NSIndexPath *)indexPath
reuseIdentifier:(NSString *)reuseIdentifier;
@end
Undocumented
-
免注册创建UICollectionViewCell,内部自动处理缓冲池
Declaration
Objective-C
+ (nonnull instancetype)cellWithCollectionView: (nonnull UICollectionView *)collectionView indexPath:(nonnull NSIndexPath *)indexPath;
-
免注册创建UICollectionViewCell,内部自动处理缓冲池,指定reuseIdentifier
Declaration
Objective-C
+ (nonnull instancetype) cellWithCollectionView:(nonnull UICollectionView *)collectionView indexPath:(nonnull NSIndexPath *)indexPath reuseIdentifier:(nonnull NSString *)reuseIdentifier;