We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在一个详情页中使用了本框架,当图片还没有加载出来的时候,退出详情页,进入列表页。再从列表页进入详情页 这个时候就出现了闪退的情况 打全局断点发现是在这个方法时出了问题,希望可以帮忙解答一下 -(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];上
The text was updated successfully, but these errors were encountered:
已修复,更新版本到1.1.0, 使用xh_reloadDataForURL:替换之前的xh_reloadRowAtIndexPath: forURL:方法
Sorry, something went wrong.
@CoderZhuXH 厉害 非常感谢
No branches or pull requests
在一个详情页中使用了本框架,当图片还没有加载出来的时候,退出详情页,进入列表页。再从列表页进入详情页 这个时候就出现了闪退的情况
打全局断点发现是在这个方法时出了问题,希望可以帮忙解答一下
-(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];上
The text was updated successfully, but these errors were encountered: