php-terminal-nes-emulator icon indicating copy to clipboard operation
php-terminal-nes-emulator copied to clipboard

CMPageContentCell实现有bug

Open chenkaijie4ever opened this issue 4 years ago • 0 comments

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

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

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

    ... }

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

chenkaijie4ever avatar Nov 11 '20 15:11 chenkaijie4ever