Skip to content

Instantly share code, notes, and snippets.

@dehengxu
Created June 27, 2013 07:27
Show Gist options
  • Save dehengxu/5874595 to your computer and use it in GitHub Desktop.
Save dehengxu/5874595 to your computer and use it in GitHub Desktop.
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
NSString *identifier = @"_collection_view_cell_identifier";
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:identifier forIndexPath:indexPath];
if (!cell) {
cell = [[UICollectionViewCell alloc] initWithFrame:CGRectMake(0, 0, 48, 48)];
}
return cell;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment