Permalink
Browse files

reset some tests back to normal

  • Loading branch information...
1 parent 1dfa972 commit d87c94f5006ba3b4befe7d20c7fa1c7da81d322e Bryce committed Aug 29, 2013
@@ -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];
}
@@ -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);

0 comments on commit d87c94f

Please sign in to comment.