Skip to content

Commit e740a3c

Browse files
committed
- Fixed a mistake with naming LXReorderableCollectionViewDataSource without capitalising the source.
1 parent 80d9277 commit e740a3c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

LXRCVFL Example using Storyboard/LXRCVFL Example using Storyboard/LXCollectionViewController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#import <UIKit/UIKit.h>
1010
#import "LXReorderableCollectionViewFlowLayout.h"
1111

12-
@interface LXCollectionViewController : UICollectionViewController <LXReorderableCollectionViewDatasource, LXReorderableCollectionViewDelegateFlowLayout>
12+
@interface LXCollectionViewController : UICollectionViewController <LXReorderableCollectionViewDataSource, LXReorderableCollectionViewDelegateFlowLayout>
1313

1414
@property (strong, nonatomic) NSMutableArray *deck;
1515

LXRCVFL Example using Storyboard/LXRCVFL Example using Storyboard/LXCollectionViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cell
7878
return playingCardCell;
7979
}
8080

81-
#pragma mark - LXReorderableCollectionViewDatasource methods
81+
#pragma mark - LXReorderableCollectionViewDataSource methods
8282

8383
- (void)collectionView:(UICollectionView *)collectionView itemAtIndexPath:(NSIndexPath *)fromIndexPath willMoveToIndexPath:(NSIndexPath *)toIndexPath {
8484
PlayingCard *playingCard = [self.deck objectAtIndex:fromIndexPath.item];

LXReorderableCollectionViewFlowLayout/LXReorderableCollectionViewFlowLayout.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
@end
2020

21-
@protocol LXReorderableCollectionViewDatasource <UICollectionViewDataSource>
21+
@protocol LXReorderableCollectionViewDataSource <UICollectionViewDataSource>
2222

2323
- (void)collectionView:(UICollectionView *)collectionView itemAtIndexPath:(NSIndexPath *)fromIndexPath willMoveToIndexPath:(NSIndexPath *)toIndexPath;
2424

LXReorderableCollectionViewFlowLayout/LXReorderableCollectionViewFlowLayout.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ @interface LXReorderableCollectionViewFlowLayout ()
5454
@property (assign, nonatomic) CGPoint panTranslationInCollectionView;
5555
@property (strong, nonatomic) NSTimer *scrollingTimer;
5656

57-
@property (assign, nonatomic, readonly) id<LXReorderableCollectionViewDatasource> dataSource;
57+
@property (assign, nonatomic, readonly) id<LXReorderableCollectionViewDataSource> dataSource;
5858
@property (assign, nonatomic, readonly) id<LXReorderableCollectionViewDelegateFlowLayout> delegate;
5959

6060
@end
@@ -117,8 +117,8 @@ - (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttribut
117117
}
118118
}
119119

120-
- (id<LXReorderableCollectionViewDatasource>)dataSource {
121-
return (id<LXReorderableCollectionViewDatasource>)self.collectionView.dataSource;
120+
- (id<LXReorderableCollectionViewDataSource>)dataSource {
121+
return (id<LXReorderableCollectionViewDataSource>)self.collectionView.dataSource;
122122
}
123123

124124
- (id<LXReorderableCollectionViewDelegateFlowLayout>)delegate {

0 commit comments

Comments
 (0)