Skip to content
New issue

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

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

Open
FLEasy opened this issue Oct 25, 2017 · 2 comments
Open

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

FLEasy opened this issue Oct 25, 2017 · 2 comments

Comments

@FLEasy
Copy link

FLEasy commented Oct 25, 2017

在一个详情页中使用了本框架,当图片还没有加载出来的时候,退出详情页,进入列表页。再从列表页进入详情页 这个时候就出现了闪退的情况
打全局断点发现是在这个方法时出了问题,希望可以帮忙解答一下
-(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];上

@CoderZhuXH
Copy link
Owner

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

@FLEasy
Copy link
Author

FLEasy commented Oct 25, 2017

@CoderZhuXH 厉害 非常感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants