Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor refactoring and reformatting

  • Loading branch information...
commit 1eba4d85da8cbf67730d25ee53282366bedef2fb 1 parent 71db226
@mattt mattt authored
Showing with 19 additions and 7 deletions.
  1. +19 −7 cvds.m
View
26 cvds.m
@@ -1,18 +1,30 @@
// UICollectionViewDataSource
-// Placeholders for the required UICollectionViewDataSource methods
+// Placeholders for essential UICollectionViewDataSource delegate methods
//
// Platform: iOS
// Language: Objective-C
// Completion Scope: Class Implementation
#pragma mark - UICollectionViewDataSource
-- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
-
+
+- (NSInteger)collectionView:(UICollectionView *)collectionView
+ numberOfItemsInSection:(NSInteger)section
+{
return <#numberOfItemsInSection#>;
}
-- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
-
+
+- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView
+ cellForItemAtIndexPath:(NSIndexPath *)indexPath
+{
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:<#reuseIdentifier#> forIndexPath:indexPath];
-
+
+ [self configureCell:cell forItemAtIndexPath:indexPath];
+
return cell;
-}
+}
+
+- (void)configureCell:(UICollectionViewCell *)cell
+ forItemAtIndexPath:(NSIndexPath *)indexPath
+{
+ <# statements #>
+}

0 comments on commit 1eba4d8

Please sign in to comment.
Something went wrong with that request. Please try again.