萤石云 iOSSDK,移植跨平台相关工程
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
//  DDCollectionViewFlowLayout.h
//  DDCollectionViewFlowLayout
//
//  Created by DeJohn Dong on 15-2-12.
//  Copyright (c) 2015年 DDKit. All rights reserved.
//
 
#import <UIKit/UIKit.h>
 
@class  DDCollectionViewFlowLayout;
 
@protocol DDCollectionViewDelegateFlowLayout <UICollectionViewDelegateFlowLayout>
 
@required
/**
 *  number of column in section protocol delegate methods
 *
 *  @param collectionView collectionView
 *  @param layout         DDCollectionViewFlowLayout
 *  @param sectionIndex   section index
 *
 *  @return number of column
 */
- (NSInteger)collectionView:(UICollectionView *)collectionView
                     layout:(DDCollectionViewFlowLayout *)layout
   numberOfColumnsInSection:(NSInteger)section;
 
@end
 
 
@interface DDCollectionViewFlowLayout : UICollectionViewFlowLayout
 
@property (nonatomic, weak) id<DDCollectionViewDelegateFlowLayout> delegate;
 
@property (nonatomic) BOOL enableStickyHeaders; //Defalut is NO, set it's YES will sticky the section header.
 
@end