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

关于使用 MSTableVIewCell注意事项 #1

Open
QianNan opened this issue Aug 18, 2016 · 1 comment
Open

关于使用 MSTableVIewCell注意事项 #1

QianNan opened this issue Aug 18, 2016 · 1 comment

Comments

@QianNan
Copy link

QianNan commented Aug 18, 2016

_灰常感谢作者,解决了我的燃眉之急。

说一下我用demo时遇到的坑,希望对大家有所帮助

1,父类cell和子类cell(就算父类cell和子类cell显示的内容一样) 一定要是同一个类,不然点击的时候会crash。
2,如果做了分页加载,MSSTableView中- (NSMutableDictionary *)expandableCells这个方法要修改:

  • (NSMutableDictionary *)expandableCells
    {
    NSInteger numberOfSections = [self.MSSTableViewDelegate numberOfSectionsInTableView:self];

    if (_expandableCells.count< numberOfSections)
    {
    _expandableCells = [NSMutableDictionary dictionary];

    for (NSInteger section = 0; section < numberOfSections; section++)
    {
    

    3,如果需要刷新tableView ,调用MSSTableView中的refreshData 方法。

@542604974
Copy link

看他这样的写法不卡顿吗?

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

2 participants