Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added PSTCollectionElementCategory and exposed layoutAttributesForSup…

…plementaryViewOfKind:atIndexPath: for subclassing layouts
  • Loading branch information...
commit dd53f9b54ba4029535ae9adc9afd8cb8b798a9ae 1 parent 7af778a
@kgn kgn authored
View
6 PSTCollectionView/PSTCollectionView.h
@@ -28,6 +28,12 @@ typedef NS_OPTIONS(NSUInteger, PSTCollectionViewScrollPosition) {
PSTCollectionViewScrollPositionRight = 1 << 5
};
+typedef NS_ENUM(NSUInteger, PSTCollectionElementCategory) {
+ PSTCollectionElementCategoryCell,
+ PSTCollectionElementCategorySupplementaryView,
+ PSTCollectionElementCategoryDecorationView
+};
+
/**
Replacement for UICollectionView for iOS4/5.
Only supports a subset of the features of UICollectionView.
View
2  PSTCollectionView/PSTCollectionViewFlowLayout.h
@@ -24,6 +24,7 @@ typedef NS_ENUM(NSInteger, PSTCollectionViewScrollDirection) {
- (CGFloat)collectionView:(PSTCollectionView *)collectionView layout:(PSTCollectionViewLayout*)collectionViewLayout minimumInteritemSpacingForSectionAtIndex:(NSInteger)section;
- (CGSize)collectionView:(PSTCollectionView *)collectionView layout:(PSTCollectionViewLayout*)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section;
- (CGSize)collectionView:(PSTCollectionView *)collectionView layout:(PSTCollectionViewLayout*)collectionViewLayout referenceSizeForFooterInSection:(NSInteger)section;
+- (PSTCollectionViewLayoutAttributes *)layoutAttributesForSupplementaryViewOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath;
@end
@@ -104,7 +105,6 @@ typedef NS_ENUM(NSInteger, PSTFlowLayoutHorizontalAlignment) {
- (PSTCollectionViewLayoutAttributes *)_layoutAttributesForItemsInRect:(CGRect)arg1;
- (CGSize)collectionViewContentSize;
- (void)finalizeCollectionViewUpdates;
-- (PSTCollectionViewLayoutAttributes *)layoutAttributesForSupplementaryViewOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath;
- (void)_invalidateButKeepDelegateInfo;
- (void)_invalidateButKeepAllInfo;
- (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)arg1;
Please sign in to comment.
Something went wrong with that request. Please try again.