Add support for scrollsToTop #11

Closed
arturgrigor opened this Issue Jan 28, 2013 · 1 comment

Projects

None yet

2 participants

@arturgrigor

Apparently if you have more than one scrolling view in a view controller, the "tap status bar to scroll to top" is disabled.

https://twitter.com/drance/status/2448035250438144

So, it would be nice if you can add some code to disable the scrollsToTop for the current unavailable table view (master when the pane is visible, and vice versa).

Thanks!

@erichoracek
Owner

Fixed in version 0.2.0. In your master view controller, set yourself as the MSNavigationPaneViewController's delegate and implement it as follows. Included in the new examples and below.

self.navigationPaneViewController.delegate = self;
- (void)navigationPaneViewController:(MSNavigationPaneViewController *)navigationPaneViewController didUpdateToPaneState:(MSNavigationPaneState)state
{
    // Ensure that the pane's table view can scroll to top correctly
    self.tableView.scrollsToTop = (state == MSNavigationPaneStateOpen);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment