Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (AQGridViewCell *)gridView:(AQGridView *)gridView cellForItemAtIndex:(NSUInteger)index
- {
- static NSString *CellIdentifier = @"Cell";
- AQGridViewCell *cell = [gridView dequeueReusableCellWithIdentifier:CellIdentifier];
- if (cell == nil) {
- cell = [[[AQGridViewCell alloc] initWithFrame:CGRectMake(0, 0, 140, 100) reuseIdentifier:CellIdentifier] autorelease];
- cell.selectionStyle = AQGridViewCellSelectionStyleNone;
- NSArray *objects = [self.gridCellNib instantiateWithOwner:nil options:nil]; // NOTHING AFTER THIS LINE IS EXECUTED
- [cell.contentView addSubview:[objects objectAtIndex:0]];
- }
- NSLog(@"THIS IS NEVER CALLED");
- return cell;
- }
Add Comment
Please, Sign In to add comment