sonnyparlin/PullToRefresh

Scroll to top?

Closed this issue · 6 comments

It seems like PullToRefresh disables the scrolling to the top when you tab the title bar. I suspect this stackoverflow question explains why: http://stackoverflow.com/questions/8951357/scroll-uitableview-to-top-when-tapping-top-of-the-screen

I use this on two of my apps that are currently in the app store and have no issue with tapping the top bar to scroll.

I just solved this for someone today, but it was a pretty specific use case. He had a storyboard and had created a ScrollView on top of the webview in the storyboard, even though it was already being created programmatically, causing multiple scrollviews to exist with the scrollsToTop property set to YES (as that's the default). Once I removed the ScrollView from the storyboard, I was able to to the top by tapping the status bar again.

I'm using Storyboards but I've only got UITableViewControllers in here. The
only ScrollView is the one that gets created by PullToRefresh.

On Wed, Aug 15, 2012 at 4:21 PM, Sonny Parlin notifications@github.comwrote:

I just solved this for someone today, but it was a pretty specific use
case. He had a storyboard and had created a ScrollView on top of the
webview in the storyboard, even though it was already being created
programmatically, causing multiple scrollviews to exist with the
scrollsToTop property set to YES. Once I removed the ScrollView from the
storyboard, I was able to to the top by tapping the status bar again.


Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-7767989.

If you want to send me your project, I'll take a look at it...

Okay, looked over code and found the issue was not-related to PullToRefresh.

For anyone who's running into this I'd been using a ZUUIRevealController to put a menu behind this view it turned out I needed to disable the scroll to top on the menu view.