您可以检查是否有图像
UIImageView
或不这样:
-(BOOL) checkImages {
for (int i=0, i<2 , i++) {
NSIndexPath indexPath = [NSIndexPath indexPathForItem:i inSection:0];
ADRPhotoCollectionViewCell cell = [collectionView cellForItemAtIndexPath:indexPath];
if (cell.imageView.image == nil || CGSizeEqualToSize(cell.imageView.image.size, CGSizeZero)) {
//there isn’t any image or the image is empty
return NO;
}
}
return YES;
}
</code>