1 parent effdcfd commit b14baaaCopy full SHA for b14baaa
1 file changed
Coding_iOS/Views/Cell/TweetCell.m
@@ -484,7 +484,7 @@ - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPa
484
HtmlMediaItem *imageItem = [_tweet.htmlMedia.imageItems objectAtIndex:i];
485
MJPhoto *photo = [[MJPhoto alloc] init];
486
photo.url = [NSURL URLWithString:imageItem.src]; // 图片路径
487
- photo.srcImageView = [_imageViewsDict objectForKey:indexPath]; // 来源于哪个UIImageView
+ photo.srcImageView = [_imageViewsDict objectForKey:[NSIndexPath indexPathForItem:i inSection:0]]; // 来源于哪个UIImageView
488
[photos addObject:photo];
489
}
490
0 commit comments