XHWebImageAutoSize icon indicating copy to clipboard operation
XHWebImageAutoSize copied to clipboard

使用的过程中出现闪退的情况

Open FLEasy opened this issue 6 years ago • 2 comments

在一个详情页中使用了本框架,当图片还没有加载出来的时候,退出详情页,进入列表页。再从列表页进入详情页 这个时候就出现了闪退的情况 打全局断点发现是在这个方法时出了问题,希望可以帮忙解答一下 -(void)xh_reloadRowAtIndexPath:(NSIndexPath *)indexPath withRowAnimation:(UITableViewRowAnimation)animation forURL:(NSURL *)url { BOOL reloadState = [XHWebImageAutoSize reloadStateFromCacheForURL:url]; if(!reloadState) { [self reloadRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:animation]; [XHWebImageAutoSize storeReloadState:YES forURL:url completed:nil];

}

} 断点停在了 这个方法的[self reloadRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:animation];上

FLEasy avatar Oct 25 '17 08:10 FLEasy

已修复,更新版本到1.1.0, 使用xh_reloadDataForURL:替换之前的xh_reloadRowAtIndexPath: forURL:方法

CoderZhuXH avatar Oct 25 '17 09:10 CoderZhuXH

@CoderZhuXH 厉害 非常感谢

FLEasy avatar Oct 25 '17 10:10 FLEasy