CollectionView.h
1.09 KB
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
39
40
41
//
// CollectionView.h
// LifeLog
//
// Created by nvtu on 8/3/17.
// Copyright © 2017 PhongNV. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CollectionView : UIView <UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout> {
NSInteger _number;
int _selectedIndex;
BOOL _isEnableSelection;
float _spacing;
float _cornerRadius;
UIColor * _highlightColor;
UIColor * _normalColor;
UIColor * _textColor;
NSArray * _arrayTitle;
}
@property (copy) void (^changeCurrentIndex)(int index);
@property (weak, nonatomic) IBOutlet UIView *view;
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
-(void) disableSelection;
-(void) setButtonNumber: (NSInteger) number;
-(void) setSpacing: (float) spacing;
-(void) setCornerRadius: (float) radius;
-(void) setSelectedIndex: (int) index;
-(void) setNormalColor: (UIColor *) normal highlightColor: (UIColor *) highlight textColor: (UIColor *) text;
-(void) setArrayTitle: (NSArray *) title;
-(int) getCurrentIndex;
@end