12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #import "PSTCollectionViewCommon.h"
- @class PSTCollectionViewLayout, PSTCollectionView, PSTCollectionViewLayoutAttributes;
- @interface PSTCollectionReusableView : UIView
- @property (nonatomic, readonly, copy) NSString *reuseIdentifier;
- - (void)prepareForReuse;
- - (void)applyLayoutAttributes:(PSTCollectionViewLayoutAttributes *)layoutAttributes;
- - (void)willTransitionFromLayout:(PSTCollectionViewLayout *)oldLayout toLayout:(PSTCollectionViewLayout *)newLayout;
- - (void)didTransitionFromLayout:(PSTCollectionViewLayout *)oldLayout toLayout:(PSTCollectionViewLayout *)newLayout;
- @end
- @interface PSTCollectionReusableView (Internal)
- @property (nonatomic, unsafe_unretained) PSTCollectionView *collectionView;
- @property (nonatomic, copy) NSString *reuseIdentifier;
- @property (nonatomic, strong, readonly) PSTCollectionViewLayoutAttributes *layoutAttributes;
- @end
- @interface PSTCollectionViewCell : PSTCollectionReusableView
- @property (nonatomic, readonly) UIView *contentView;
- @property (nonatomic, getter=isSelected) BOOL selected;
- @property (nonatomic, getter=isHighlighted) BOOL highlighted;
- @property (nonatomic, strong) UIView *backgroundView;
- @property (nonatomic, strong) UIView *selectedBackgroundView;
- @end
|