FTFoldingTableView icon indicating copy to clipboard operation
FTFoldingTableView copied to clipboard

Nested cells

Open Sjoerdjanssenen opened this issue 8 years ago • 5 comments

It would be really awesome if you could have nested cells. Say, I'd like to display the following:

Restaurant
    Table
        Chair
        Chair
    Table
        Chair
Restaurant
    Table
        Chair

I'd like to be able to collapse on the restaurant level, but also on the table level.

Sjoerdjanssenen avatar Aug 03 '16 07:08 Sjoerdjanssenen

@property (nonatomic) NSInteger indentationLevel; // adjust content indent. default is 0 @property (nonatomic) CGFloat indentationWidth; // width for each level. default is 10.0

check out these two properties in UITableViewCell.h. with these two properties provided, it's totally doable. I will write this demo for you very soon.

liufengting avatar Aug 03 '16 09:08 liufengting

didnt find these property ?

bablu-joshi avatar Aug 03 '16 09:08 bablu-joshi

i didnt use these property in this project.

liufengting avatar Aug 03 '16 10:08 liufengting

check this out: https://github.com/liufengting/FTFoldableTableView I wrote this demo, and it's not finished yet. I think it maybe the thing you want. I haven't have the idea to set up the model, and the collapse. I hope it will give you an idea.

liufengting avatar Aug 03 '16 13:08 liufengting

I will check this out tomorrow. Thanks for creating such a quick demo.

Sjoerdjanssenen avatar Aug 06 '16 16:08 Sjoerdjanssenen