ExpandableCell
ExpandableCell copied to clipboard
After updating to the latest version, my cells are now not responding to being selected
Whenever i tap onto a cell it won't expand anymore. The openAll() function works, but putting open(indexPath) in the didSelect method does nothing for me.
I am facing the same problem too. I've tried to register a tapgesture to the particular tableviewcell and assign the tableviewcell's tag as the indexPath.row. After that I tried to use open(indexPath(row: sender.view.tag, section: 0)), it works but it is faulty for me because the data isn't displaying correctly and sometimes disappearing..
Hi, I think I found the problem. Try to return TRUE to shouldHighlightRow delegate of ExpandableTableView.
I had this also. Went back a version.
I faced the same problem. Solved it by going back to ver 1.2.0. Going back to 1.2.1 doesn't work.
@gouen95 your solution worked for me. i would recommend you guys trying this @Spark3000 and @Sunnymous
@huntergray11 Thanks. Now I can use the newest version of this library. But because of other serious defect, I don't think I can use this library. The problem still remains in the newest version(1.2.2) If anyone's interested, please check issue #23
Returning true
from shouldHighlightRowAt
method worked for me as well but that also means I can't have rows expandable without the highlight effect. Is this a bug or an expected behavior?
Sorry about flooding but if you want to prevent highlight effect and also work this problem around, just do as @gouen95 says and then set cell.selectionStyle = .none
in your func expandableTableView(_ expandableTableView: ExpandableTableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
method.
重用有问题, 已经在使用 cell 会被强制回收, Reuse has a problem, has been in the use of the cell will be compulsory recycling,
