This repository has been archived by the owner on Jan 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathUXTableView.h
67 lines (49 loc) · 2.8 KB
/
UXTableView.h
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// UXKit headers, derived from reverse engineering by Adam Demasi (@kirb)
// This is free and unencumbered software released into the public domain. Refer to LICENSE.md.
#import "UXTableViewCell.h"
typedef NS_ENUM(NSInteger, UXTableViewStyle) {
UXTableViewStylePlain,
UXTableViewStyleGrouped
};
typedef NS_ENUM(NSInteger, UXTableViewRowAnimation) {
UXTableViewRowAnimationFade,
UXTableViewRowAnimationRight,
UXTableViewRowAnimationLeft,
UXTableViewRowAnimationTop,
UXTableViewRowAnimationBottom,
UXTableViewRowAnimationNone,
UXTableViewRowAnimationMiddle,
UXTableViewRowAnimationAutomatic = 100
};
@protocol UXTableViewDataSource;
@protocol UXTableViewDelegate;
@class UXView, UXTableViewCell;
@interface UXTableView : UXCollectionView
@property (nonatomic) __weak id<UXTableViewDelegate> tableViewDelegate;
@property (nonatomic) __weak id<UXTableViewDataSource> tableViewDataSource;
@property (nonatomic) NSEdgeInsets separatorInset;
@property (copy, nonatomic) NSColor *separatorColor;
@property (nonatomic) UXTableViewCellSeparatorStyle separatorStyle;
@property (nonatomic) CGFloat rowHeight;
- (instancetype)initWithFrame:(CGRect)frame style:(UXTableViewStyle)style;
- (NSInteger)numberOfRowsInSection:(NSInteger)section;
- (UXTableViewCell *)cellForRowAtIndexPath:(NSIndexPath *)indexPath;
- (void)deselectRowAtIndexPath:(NSIndexPath *)indexPath animated:(BOOL)arg2;
- (void)selectRowAtIndexPath:(NSIndexPath *)indexPath animated:(BOOL)arg2 scrollPosition:(NSInteger)scrollPosition;
- (void)beginUpdates;
- (void)endUpdates;
- (void)moveRowAtIndexPath:(NSIndexPath *)indexPath toIndexPath:(NSIndexPath *)toIndexPath;
- (void)reloadRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UXTableViewRowAnimation)rowAnimation;
- (void)deleteRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UXTableViewRowAnimation)rowAnimation;
- (void)insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UXTableViewRowAnimation)rowAnimation;
- (void)deleteSections:(NSArray *)sections withRowAnimation:(UXTableViewRowAnimation)rowAnimation;
- (void)insertSections:(NSArray *)sections withRowAnimation:(UXTableViewRowAnimation)rowAnimation;
- (NSIndexPath *)indexPathsForVisibleRows;
- (NSIndexPath *)indexPathForSelectedRow;
- (NSIndexPath *)indexPathForClickedRow;
// this method doesn't work. use -[UXCollectionView registerClass:forCellWithReuseIdentifier:]
- (void)registerClass:(Class)cellClass forCellReuseIdentifier:(NSString *)reuseIdentifier;
- (UXTableViewCell *)dequeueReusableCellWithReuseIdentifier:(NSString *)reuseIdentifier forIndexPath:(NSIndexPath *)indexPath;
- (UXTableViewCell *)dequeueReusableCellWithIdentifier:(NSString *)reuseIdentifier forIndexPath:(NSIndexPath *)indexPath;
- (UXView *)dequeueReusableHeaderFooterViewWithReuseIdentifier:(NSString *)reuseIdentifier forSection:(NSInteger)section;
@end