ExpandableCell
ExpandableCell copied to clipboard
didSelectRowAt: and other selection methods not calls without definition shouldHighlightRowAt:
Can try it on ExpandableCellDemo, if comment this method:
func expandableTableView(_ expandableTableView: UITableView, shouldHighlightRowAt indexPath: IndexPath) -> Bool { return true }
then all cells will not be selectable.
Conclusion, that shouldHighlightRowAt: required for cells selection
Thank you man
Thanks
This is the only place on the Internet (unbelievably) that I have managed to find out that didSelectRowAt will not be called if shouldHighlightRowAt is false. Why this is the case, I do not know. Cell highlighting looks awful.