Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ups...

  • Loading branch information...
commit 11855c342f1c730183f8af64c6ad8fc0f79cef25 1 parent 11c2330
@renspr renspr authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  MMGridView/Classes/MMGridView.m
View
2  MMGridView/Classes/MMGridView.m
@@ -127,6 +127,8 @@ - (void)drawRect:(CGRect)rect
for (NSInteger i = 0; i < [self.dataSource numberOfCellsInGridView:self]; i++) {
MMGridViewCell *cell = [self.dataSource gridView:self cellAtIndex:i];
+ [cell performSelector:@selector(setGridView:) withObject:self];
+ [cell performSelector:@selector(setIndex:) withObject:[NSNumber numberWithInt:i]];
NSInteger page = (int)floor((float)i / (float)cellsPerPage);
NSInteger row = (int)floor((float)i / (float)noOfCols) - (page * noOfRows);
Please sign in to comment.
Something went wrong with that request. Please try again.