RATreeView icon indicating copy to clipboard operation
RATreeView copied to clipboard

Scrollview.contentOffset not functioning

Open SpaceTrucker2196 opened this issue 9 years ago • 1 comments

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;

SpaceTrucker2196 avatar Sep 22 '16 15:09 SpaceTrucker2196

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

Augustyniak avatar Dec 02 '16 11:12 Augustyniak