Guest User

Untitled

a guest
Feb 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. - (AQGridViewCell *)gridView:(AQGridView *)gridView cellForItemAtIndex:(NSUInteger)index
  2. {
  3. static NSString *CellIdentifier = @"Cell";
  4.  
  5. AQGridViewCell *cell = [gridView dequeueReusableCellWithIdentifier:CellIdentifier];
  6. if (cell == nil) {
  7. cell = [[[AQGridViewCell alloc] initWithFrame:CGRectMake(0, 0, 140, 100) reuseIdentifier:CellIdentifier] autorelease];
  8. cell.selectionStyle = AQGridViewCellSelectionStyleNone;
  9. NSArray *objects = [self.gridCellNib instantiateWithOwner:nil options:nil]; // NOTHING AFTER THIS LINE IS EXECUTED
  10. [cell.contentView addSubview:[objects objectAtIndex:0]];
  11. }
  12. NSLog(@"THIS IS NEVER CALLED");
  13. return cell;
  14. }
Add Comment
Please, Sign In to add comment