在- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath;这个函数里,UIImageView是直接add在cell上的,而UIImageView *imgView = (UIImageView *)[cell.contentView viewWithTag:1];取错了,^_^ 感谢lz分享