@@ -16,24 +16,13 @@ If you find it helpful, a Paypal donation would be very appreciated (donation [a
16
16
How to use
17
17
----------
18
18
19
- 1. Add FMMoveTableView.(h/m) and FMMoveTableViewCell.(h/m) to your project
20
- 2. Change you UITableView subclass to be a subclass of * FMMoveTableView*
21
- 3. Change your UITableViewCell subclass to be a subclass of * FMMoveTableViewCell*
22
- 4. Update your UI(Table)ViewController to conform to * FMMoveTableViewDataSource* and (optional) * FMMoveTableViewDelegate*
23
- 5. Implement at least the delegate method ` moveTableView:moveRowFromIndexPath:toIndexPath: ` to update your model after a move
24
- 6. Implement a check in your table view data source ` tableView:cellForRowAtIndexPath: ` to prepare the appropriate row for it's move:
25
-
26
- >
27
-
28
- if ([tableView indexPathIsMovingIndexPath:indexPath])
29
- {
30
- [cell prepareForMove];
31
- }
32
- else
33
- {
34
- // Configure your cell for normal use
35
- }
36
-
19
+ 1. Import the QuartzCore framework.
20
+ 2. Add FMMoveTableView.(h/m) and FMMoveTableViewCell.(h/m) to your project
21
+ 3. Change you UITableView subclass to be a subclass of * FMMoveTableView*
22
+ 4. Change your UITableViewCell subclass to be a subclass of * FMMoveTableViewCell*
23
+ 5. Update your UI(Table)ViewController to conform to * FMMoveTableViewDataSource* and (optional) * FMMoveTableViewDelegate*
24
+ 6. Implement at least the delegate method ` moveTableView:moveRowFromIndexPath:toIndexPath: ` to update your model after a move
25
+ 7. Implement some additional checked in your table view data source / delegate. Check the * FMMoveViewController* for further details
37
26
38
27
Background
39
28
----------
@@ -43,6 +32,7 @@ Background
43
32
Addopts the known UITableViewDataSource and UITableViewDelegate methods to check whether a row:
44
33
45
34
* ** Will move:** ` moveTableView:willMoveRowAtIndexPath: `
35
+ * ** Can be moved:** ` moveTableView:canMoveRowAtIndexPath: `
46
36
* ** Can move to an index path:** ` moveTableView:targetIndexPathForMoveFromRowAtIndexPath:toProposedIndexPath: `
47
37
* ** Did move:** ` moveTableView:moveRowFromIndexPath:toIndexPath: `
48
38
0 commit comments