Skip to content

Commit b14baaa

Browse files
committed
Bugfix: 冒泡列表,点击图片时MJPhoto的srcImageView设置错误导致MJPhotoBrowser显示大图前的缩略图(placeholder)显示错误
1 parent effdcfd commit b14baaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Coding_iOS/Views/Cell/TweetCell.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPa
484484
HtmlMediaItem *imageItem = [_tweet.htmlMedia.imageItems objectAtIndex:i];
485485
MJPhoto *photo = [[MJPhoto alloc] init];
486486
photo.url = [NSURL URLWithString:imageItem.src]; // 图片路径
487-
photo.srcImageView = [_imageViewsDict objectForKey:indexPath]; // 来源于哪个UIImageView
487+
photo.srcImageView = [_imageViewsDict objectForKey:[NSIndexPath indexPathForItem:i inSection:0]]; // 来源于哪个UIImageView
488488
[photos addObject:photo];
489489
}
490490

0 commit comments

Comments
 (0)