Augustyniak / RATreeView

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

Scrollview.contentOffset not functioning #190

Open SpaceTrucker2196 opened 7 years ago

SpaceTrucker2196 commented 7 years ago

I would like to save the scroll position between launches.

Normally with a UITableView I would save the content offset of the scrollview and save it. On the next launch I read this value and set the contentOffset with the saved value.

I don't see the expected behavior, my HierarchyView is always scrolled to the top after launch.

The following will reproduce the error:

    CGPoint scrollPoint = CGPointMake(0,100);
    self.treeView.scrollView.contentOffset = scrollPoint;
Augustyniak commented 7 years ago

When (in what method/at which moment) are you setting contentOffset in a way described above?