DKPhotoPickerCollectionViewCell.m 661 B

1234567891011121314151617181920212223
  1. //
  2. // PickerCollectionViewCell.m
  3. // 相机
  4. //
  5. //
  6. #import "DKPhotoPickerCollectionViewCell.h"
  7. static NSString *const _cellIdentifier = @"cell";
  8. @implementation DKPhotoPickerCollectionViewCell
  9. + (instancetype)cellWithCollectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
  10. DKPhotoPickerCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:_cellIdentifier forIndexPath:indexPath];
  11. if ([[cell.contentView.subviews lastObject] isKindOfClass:[UIImageView class]]) {
  12. [[cell.contentView.subviews lastObject] removeFromSuperview];
  13. }
  14. return cell;
  15. }
  16. @end