Expand UITableView cell in UITableViewstylePlain

前端 未结 7 2049
北荒
北荒 2020-12-13 16:20

I want to expand tableview cell on it\'s click. There is a tableview in which two cells are expandable and others are not. I need when i click on expandable cell it should s

相关标签:
7条回答
  • 2020-12-13 16:58

    The accepted answer is true but the link is outdated. To get that example to work you have to do extra things:

    Download ExpandableTableCells project from here:
    https://github.com/cocoanetics/Examples

    Download DTCustomColoredAccessory.h and .m files from here: https://github.com/Cocoanetics/DTFoundation/tree/develop/Core/Source/iOS

    Put the DTCustomColoredAccessory files in the ExpandableTableCells project.

    There you have it a working example, it is easier to edit and move from there instead of trying to write from zero.

    0 讨论(0)
提交回复
热议问题