Skip to content

Commit 46badc4

Browse files
committed
Merge pull request lxcid#37 from cbess/patch-1
Update README.md
2 parents 1129f97 + 9ff28f0 commit 46badc4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Features
88

99
The goal of LXReorderableCollectionViewFlowLayout is to provides capability for reordering of cell, similar to iBook.
1010

11-
- Long press on cell invoke reordering capability.
11+
- Long press on cell to invoke reordering capability.
1212
- When reordering capability is invoked, fade the selected cell from highlighted to normal state.
13-
- Drag around the selected cell to move it to the desired location, other cells adjust accordingly. Callback in the form of delegate methods are invoked.
13+
- Drag around the selected cell to move it to the desired location, the other cells adjust accordingly. Callback in the form of delegate methods are invoked.
1414
- Drag selected cell to the edges, depending on scroll direction, scroll in the desired direction.
1515
- Release to stop reordering.
1616

@@ -19,15 +19,15 @@ Getting Started
1919

2020
<img src="https://raw.github.com/lxcid/LXReorderableCollectionViewFlowLayout/master/Content/Screenshots/screenshot1.png" alt="Screenshot" title="Screenshot" style="display:block; margin: 10px auto 30px auto; width: 300px; height: 400px;" class="center">
2121

22-
1. Drag the `LXReorderableCollectionViewFlowLayout` folder into your project.
22+
1. Install using *CocoaPods* or drag the `LXReorderableCollectionViewFlowLayout` folder into your project.
2323
2. Initialize/Setup your collection view to use `LXReorderableCollectionViewFlowLayout`.
2424

2525
3. The collection view controller that is to support reordering capability must conforms to `LXReorderableCollectionViewDatasource` protocol. For example,
2626

2727
- (void)collectionView:(UICollectionView *)collectionView itemAtIndexPath:(NSIndexPath *)fromIndexPath willMoveToIndexPath:(NSIndexPath *)toIndexPath {
2828
id object = [mutableArray objectAtIndex:fromIndexPath.item];
29-
[mutableArray removeObjectAtIndex:FromIndexPath.item];
30-
[mutableArray insertObject:object atIndex:ToIndexPath.item];
29+
[mutableArray removeObjectAtIndex:fromIndexPath.item];
30+
[mutableArray insertObject:object atIndex:toIndexPath.item];
3131
}
3232

3333
4. You can listen to some dragging events through comforming to `LXReorderableCollectionViewDelegateFlowLayout` methods.

0 commit comments

Comments
 (0)