-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNCCellsDragger.h
42 lines (28 loc) · 1.56 KB
/
NCCellsDragger.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
//
// NCCellsDragger.h
// TableViewDragging
//
// Created by Volkov Dmitry on 6/26/13.
// Copyright (c) 2013 Volkov Dmitry. All rights reserved.
//
#import <Foundation/Foundation.h>
@class NCCellsDragger;
@protocol NCCellsDraggerDelegate <NSObject>
//@required
@optional
- (void) cellsDragger:(NCCellsDragger*) dragger willMoveCellAtIndexPath:(NSIndexPath*) fromIndexPath toIndexPath:(NSIndexPath*) toIndexPath;
- (void) cellsDragger:(NCCellsDragger*) dragger didMoveCellAtIndexPath:(NSIndexPath*) fromIndexPath toIndexPath:(NSIndexPath*) toIndexPath;
- (BOOL) cellsDragger:(NCCellsDragger*) dragger canMoveCellAtIndexPath:(NSIndexPath*) indexPath;
- (BOOL) cellsDragger:(NCCellsDragger*) dragger canMoveCellAtIndexPath:(NSIndexPath*) fromIndexPath toIndexPath:(NSIndexPath*) toIndexPath;
- (void) cellsDragger:(NCCellsDragger*) dragger willBeginDraggingCellAtIndexPath:(NSIndexPath*) indexPath;
- (void) cellsDragger:(NCCellsDragger*) dragger didBeginDraggingCellAtIndexPath:(NSIndexPath*) indexPath;
- (void) cellsDragger:(NCCellsDragger*) dragger willEndDraggingCellAtIndexPath:(NSIndexPath*) indexPath;
- (void) cellsDragger:(NCCellsDragger*) dragger didEndDraggingCellAtIndexPath:(NSIndexPath*) indexPath;
@end
@interface NCCellsDragger : NSObject
@property(nonatomic, readonly) UITableView* tableView;
@property(nonatomic, weak) id<NCCellsDraggerDelegate> delegate;
- (instancetype) initWithTableView:(UITableView*) tableView;
- (instancetype) initWithTableView:(UITableView*) tableView delegate:(id<NCCellsDraggerDelegate>) delegate;
- (void) removeFromCurrentTableView;
@end