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

LLSwitch在tableviewcell中使用会有问题 #4

Open
zixun opened this issue Jul 23, 2016 · 5 comments
Open

LLSwitch在tableviewcell中使用会有问题 #4

zixun opened this issue Jul 23, 2016 · 5 comments

Comments

@zixun
Copy link

zixun commented Jul 23, 2016

在每个tableviewcell中添加LLSwitch,默认都是on状态,然后数据源来记录每个cell的状态,手动改变一个LLSwitch状态,滚动几次就出问题了,不是关闭的时候出现笑脸,就是关闭的时候背景是on的背景。
麻烦楼主fix下,fix掉后我再接入使用。。。

@lilei644
Copy link
Owner

您好,我测试一下(version 1.0.4),并没有出现上述的错误,不知道方不方便提供相关代码以供调试
2016-07-25 10 38 56

@zixun
Copy link
Author

zixun commented Jul 25, 2016

你把cell数目曾多两倍,然后上下滚动下看

@lilei644
Copy link
Owner

哦,我看了一下,发现你说的现象了,不过这个应该是tableviewcell重用的问题导致的,跟控件应该没关,你可以查一下解决重用问题的方法

@zixun
Copy link
Author

zixun commented Jul 26, 2016

是控件绘制的问题

@CH305426
Copy link

同样碰到这个问题,如果直接addSubView正常的。

我是自定义一个tableHeaderView ,设置xxxx *xx = [[xxxx alloc] initWithFrame: xxx] ;
_tableView.tableHeaderView = xx;
xx添加按钮设置on状态,笑脸是关闭是的样子

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

3 participants