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

关于复用导致的崩溃问题 #17

Open
icubic3 opened this issue Nov 1, 2018 · 0 comments
Open

关于复用导致的崩溃问题 #17

icubic3 opened this issue Nov 1, 2018 · 0 comments

Comments

@icubic3
Copy link

icubic3 commented Nov 1, 2018

你好,我在使用FlexBoxLayout时发现了一个问题:
如果有两个以上的类都使用了FlexBoxLayout,
由于在fb_setCellContnetViewBlockForIndexPath这个方法中,设置了dispatch_once,导致只有第一个使用的类会调用
[self registerClass:[UITableViewCell class] forCellReuseIdentifier:kCellIdentifier];

这样会导致后面使用FlexBoxLayout的类产生崩溃
之后的类需要手动加入类似这样的代码可以避免崩溃:
[_myTableView registerClass:QMNoteFeedCardCell.class forCellReuseIdentifier:@"fb_kCellIdentifier"];

希望作者可以对这个问题优化一下,或者在使用说明中提示一下,谢谢

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

1 participant