Skip to content

CMPageContentCell实现有bug #24

@chenkaijie4ever

Description

@chenkaijie4ever

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

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

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

    ...
    }

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions