-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMTTableView.h
More file actions
executable file
·79 lines (72 loc) · 5.12 KB
/
Copy pathMTTableView.h
File metadata and controls
executable file
·79 lines (72 loc) · 5.12 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
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
68
69
70
71
72
73
74
75
76
77
78
79
//
// MTTableView.h
// MicroTransfer
//
// Created by jacksonpan on 13-1-19.
// Copyright (c) 2013年 weichuan. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MTTableView_Define.h"
#import "MTTableView+Transform.h"
#define MSG_MTTableView_ReloadData_END @"MSG_MTTableView_ReloadData_END"
@interface MTTableView : UITableView
#pragma mark - DataSource @required
@property (nonatomic, strong) numberOfRows blockNumberOfRows;
@property (nonatomic, strong) cellForRowAtIndexPath blockCellForRowAtIndexPath;
#pragma mark - DataSource @optional
@property (nonatomic, strong) numberOfSections blockNumberOfSections;
@property (nonatomic, strong) titleForHeaderInSection blockTitleForHeaderInSection;
@property (nonatomic, strong) titleForFooterInSection blockTitleForFooterInSection;
@property (nonatomic, strong) canEditRowAtIndexPath blockCanEditRowAtIndexPath;
@property (nonatomic, strong) canMoveRowAtIndexPath blockCanMoveRowAtIndexPath;
@property (nonatomic, strong) sectionIndexTitles blockSectionIndexTitles;
@property (nonatomic, strong) sectionForSectionIndexTitle blockSectionForSectionIndexTitle;
@property (nonatomic, strong) commitEditingStyle blockCommitEditingStyle;
@property (nonatomic, strong) moveRowAtIndexPath blockMoveRowAtIndexPath;
#pragma mark - Delegate @optional
@property (nonatomic, strong) willDisplayCell blockwWllDisplayCell;
@property (nonatomic, strong) heightForRowAtIndexPath blockHeightForRowAtIndexPath;
@property (nonatomic, strong) heightForHeaderInSection blockHeightForHeaderInSection;
@property (nonatomic, strong) heightForFooterInSection blockHeightForFooterInSection;
@property (nonatomic, strong) viewForHeaderInSection blockViewForHeaderInSection;
@property (nonatomic, strong) viewForFooterInSection blockViewForFooterInSection;
@property (nonatomic, strong) accessoryButtonTappedForRowWithIndexPath blockAccessoryButtonTappedForRowWithIndexPath;
@property (nonatomic, strong) willSelectRowAtIndexPath blockWillSelectRowAtIndexPath;
@property (nonatomic, strong) willDeselectRowAtIndexPath blockWillDeselectRowAtIndexPath;
@property (nonatomic, strong) didSelectRowAtIndexPath blockDidSelectRowAtIndexPath;
@property (nonatomic, strong) didDeselectRowAtIndexPath blockDidDeselectRowAtIndexPath;
@property (nonatomic, strong) editingStyleForRowAtIndexPath blockEditingStyleForRowAtIndexPath;
@property (nonatomic, strong) titleForDeleteConfirmationButtonForRowAtIndexPath blockTitleForDeleteConfirmationButtonForRowAtIndexPath;
@property (nonatomic, strong) shouldIndentWhileEditingRowAtIndexPath blockShouldIndentWhileEditingRowAtIndexPath;
@property (nonatomic, strong) willBeginEditingRowAtIndexPath blockWillBeginEditingRowAtIndexPath;
@property (nonatomic, strong) didEndEditingRowAtIndexPath blockDidEndEditingRowAtIndexPath;
@property (nonatomic, strong) targetIndexPathForMoveFromRowAtIndexPath blockTargetIndexPathForMoveFromRowAtIndexPath;
@property (nonatomic, strong) indentationLevelForRowAtIndexPath blockIndentationLevelForRowAtIndexPath;
@property (nonatomic, strong) shouldShowMenuForRowAtIndexPath blockShouldShowMenuForRowAtIndexPath;
@property (nonatomic, strong) canPerformAction blockCanPerformAction;
@property (nonatomic, strong) performAction blockPerformAction;
@property (nonatomic, strong) MTTableViewReloadStart blockMTTableViewReloadStart;
@property (nonatomic, strong) MTTableViewReloadEnd blockMTTableViewReloadEnd;
@property (nonatomic, strong) MTTableViewReloadAndDisplayEnd blockMTTableViewReloadAndDisplayEnd;
- (void)setBlockNumberOfSections:(numberOfSections)blockNumberOfSections;
- (void)setBlockSectionForSectionIndexTitle:(sectionForSectionIndexTitle)blockSectionForSectionIndexTitle;
- (void)setBlockNumberOfRows:(numberOfRows)blockNumberOfRows;
- (void)setBlockCellForRowAtIndexPath:(cellForRowAtIndexPath)blockCellForRowAtIndexPath;
- (void)setBlockHeightForHeaderInSection:(heightForHeaderInSection)blockHeightForHeaderInSection;
- (void)setBlockHeightForRowAtIndexPath:(heightForRowAtIndexPath)blockHeightForRowAtIndexPath;
- (void)setBlockDidSelectRowAtIndexPath:(didSelectRowAtIndexPath)blockDidSelectRowAtIndexPath;
- (void)setBlockViewForHeaderInSection:(viewForHeaderInSection)blockViewForHeaderInSection;
- (void)setBlockEditingStyleForRowAtIndexPath:(editingStyleForRowAtIndexPath)blockEditingStyleForRowAtIndexPath;
- (void)setBlockCommitEditingStyle:(commitEditingStyle)blockCommitEditingStyle;
- (void)setBlockCanEditRowAtIndexPath:(canEditRowAtIndexPath)blockCanEditRowAtIndexPath;
- (void)setBlockMTTableViewReloadStart:(MTTableViewReloadStart)blockMTTableViewReloadStart;
- (void)setBlockMTTableViewReloadEnd:(MTTableViewReloadEnd)blockMTTableViewReloadEnd;
- (void)setBlockMTTableViewReloadAndDisplayEnd:(MTTableViewReloadAndDisplayEnd)blockMTTableViewReloadAndDisplayEnd;
- (void)setBlockTitleForHeaderInSection:(titleForHeaderInSection)blockTitleForHeaderInSection;
- (void)setBlockDidDeselectRowAtIndexPath:(didDeselectRowAtIndexPath)blockDidDeselectRowAtIndexPath;
/* block above */
@property (nonatomic, assign) BOOL enableTransform;
@property (nonatomic, strong) MTTableViewCellTransform blockTransform;
- (CGPoint)scrollSpeed;
- (void)setBlockTransform:(MTTableViewCellTransform)blockTransform;
@end