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

CMPageContentCell实现有bug #24

Open
chenkaijie4ever opened this issue Nov 11, 2020 · 0 comments
Open

CMPageContentCell实现有bug #24

chenkaijie4ever opened this issue Nov 11, 2020 · 0 comments

Comments

@chenkaijie4ever
Copy link

CMPageContentCell调用setCm_contentView方法时,需要先把上一个_cm_contentView移除,如下:

  • (void)setCm_contentView:(UIView *)cm_contentView {

    if (_cm_contentView.superview) {
    [_cm_contentView removeFromSuperview];
    }

    ...
    }

考虑到Cell是复用的,如果cm_contentView对应的ViewController没有dealloc的话,就会出现内容的重叠

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