Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Commit 1eba4d8

Browse files
committed
Minor refactoring and reformatting
1 parent 71db226 commit 1eba4d8

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

cvds.m

+19-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,30 @@
11
// UICollectionViewDataSource
2-
// Placeholders for the required UICollectionViewDataSource methods
2+
// Placeholders for essential UICollectionViewDataSource delegate methods
33
//
44
// Platform: iOS
55
// Language: Objective-C
66
// Completion Scope: Class Implementation
77

88
#pragma mark - UICollectionViewDataSource
9-
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
10-
9+
10+
- (NSInteger)collectionView:(UICollectionView *)collectionView
11+
numberOfItemsInSection:(NSInteger)section
12+
{
1113
return <#numberOfItemsInSection#>;
1214
}
13-
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
14-
15+
16+
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView
17+
cellForItemAtIndexPath:(NSIndexPath *)indexPath
18+
{
1519
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:<#reuseIdentifier#> forIndexPath:indexPath];
16-
20+
21+
[self configureCell:cell forItemAtIndexPath:indexPath];
22+
1723
return cell;
18-
}
24+
}
25+
26+
- (void)configureCell:(UICollectionViewCell *)cell
27+
forItemAtIndexPath:(NSIndexPath *)indexPath
28+
{
29+
<# statements #>
30+
}

0 commit comments

Comments
 (0)