Skip to content

Commit

Permalink
reset some tests back to normal
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce committed Aug 29, 2013
1 parent 1dfa972 commit d87c94f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Binary file not shown.
6 changes: 2 additions & 4 deletions QuiltDemo/RFViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ @implementation RFViewController
- (void)viewDidLoad {

self.numbers = [@[] mutableCopy];
for(; num<0; num++) { [self.numbers addObject:@(num)]; }
for(; num<100; num++) { [self.numbers addObject:@(num)]; }

[self.collectionView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@"cell"];

RFQuiltLayout* layout = (id)[self.collectionView collectionViewLayout];
layout.direction = UICollectionViewScrollDirectionVertical;
layout.blockPixels = CGSizeMake(310, 255);
layout.prelayoutEverything = YES;
layout.blockPixels = CGSizeMake(100, 100);

[self.collectionView reloadData];
}
Expand Down Expand Up @@ -100,7 +99,6 @@ - (UICollectionViewCell *)collectionView:(UICollectionView *)cv cellForItemAtInd
#pragma mark – RFQuiltLayoutDelegate

- (CGSize) blockSizeForItemAtIndexPath:(NSIndexPath *)indexPath {
return CGSizeMake(1.0, 1.0);

if(indexPath.row >= self.numbers.count)
NSLog(@"Asking for index paths of non-existant cells!! %d from %d cells", indexPath.row, self.numbers.count);
Expand Down

0 comments on commit d87c94f

Please sign in to comment.