ExpandableCell icon indicating copy to clipboard operation
ExpandableCell copied to clipboard

After updating to the latest version, my cells are now not responding to being selected

Open ashleighxi opened this issue 7 years ago • 10 comments

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.

ashleighxi avatar Jan 04 '18 15:01 ashleighxi

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..

gouen95 avatar Jan 05 '18 02:01 gouen95

Hi, I think I found the problem. Try to return TRUE to shouldHighlightRow delegate of ExpandableTableView.

gouen95 avatar Jan 05 '18 09:01 gouen95

I had this also. Went back a version.

seanonthenet avatar Jan 15 '18 12:01 seanonthenet

I faced the same problem. Solved it by going back to ver 1.2.0. Going back to 1.2.1 doesn't work.

Sunnymous avatar Jan 30 '18 01:01 Sunnymous

@gouen95 your solution worked for me. i would recommend you guys trying this @Spark3000 and @Sunnymous

ashleighxi avatar Jan 31 '18 16:01 ashleighxi

@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

Sunnymous avatar Feb 01 '18 03:02 Sunnymous

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?

kublaios avatar Jul 14 '18 20:07 kublaios

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.

kublaios avatar Jul 14 '18 21:07 kublaios

重用有问题, 已经在使用 cell 会被强制回收, Reuse has a problem, has been in the use of the cell will be compulsory recycling,

Rdxer avatar Sep 14 '18 06:09 Rdxer

wx20180914-144916 2x

Rdxer avatar Sep 14 '18 06:09 Rdxer