Augustyniak / RATreeView

Library providing easy-to-use interface for displaying tree structures on iOS and tvOS.
MIT License
2.49k stars 465 forks source link

Expand All cell at time of reloading tableview. #94

Open uditbatra opened 9 years ago

uditbatra commented 9 years ago

Hi,

When i reload tableview i want all cell to be expanded initially. Is there any function for this.

Thanks

LvJianfeng commented 9 years ago

Hello, you have a solution for it?

leagon commented 9 years ago

I also have this question

LvJianfeng commented 9 years ago

I have already solved,you can at the time of reloadtree to use expand

leagon commented 9 years ago

i see. thanks.

kmav commented 8 years ago

Hi. Could you provide more details and code? What do you mean "at the time of reloadtree to use expand" ?

joshjack commented 8 years ago

In viewDidLoad for the view just call -expandRowForItem on all items.

kmav commented 8 years ago

Thank you joshjack . In fact, I called

[self expandRowForItem:anItem expandChildren:YES withRowAnimation:RATreeViewRowAnimationNone]

for every item in the top level. I wanted the tree to be fully expanded.