Skip to content
This repository was archived by the owner on Nov 6, 2018. It is now read-only.

Commit 6eaaa9b

Browse files
author
Florian Mielke
committed
Update read me to version 1.1
1 parent 49152f1 commit 6eaaa9b

File tree

2 files changed

+10
-20
lines changed

2 files changed

+10
-20
lines changed

FMMoveTable/Info.plist

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.0</string>
20+
<string>1.1</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>1.0</string>
24+
<string>5</string>
2525
<key>LSRequiresIPhoneOS</key>
2626
<true/>
2727
<key>UIMainStoryboardFile</key>

README.markdown

+8-18
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,13 @@ If you find it helpful, a Paypal donation would be very appreciated (donation [a
1616
How to use
1717
----------
1818

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
3726

3827
Background
3928
----------
@@ -43,6 +32,7 @@ Background
4332
Addopts the known UITableViewDataSource and UITableViewDelegate methods to check whether a row:
4433

4534
* **Will move:** `moveTableView:willMoveRowAtIndexPath:`
35+
* **Can be moved:** `moveTableView:canMoveRowAtIndexPath:`
4636
* **Can move to an index path:** `moveTableView:targetIndexPathForMoveFromRowAtIndexPath:toProposedIndexPath:`
4737
* **Did move:** `moveTableView:moveRowFromIndexPath:toIndexPath:`
4838

0 commit comments

Comments
 (0)