Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull to Refresh not working on UIScrollView with Auto Layout #219

Open
Kennouf opened this issue Sep 5, 2014 · 0 comments
Open

Pull to Refresh not working on UIScrollView with Auto Layout #219

Kennouf opened this issue Sep 5, 2014 · 0 comments

Comments

@Kennouf
Copy link

Kennouf commented Sep 5, 2014

Hey,

Sorry if my question seems stupid but I've been trying everything to get it to work for several days now and nothing comes to my mind anymore.

I'm trying to use the Pull to Refresh on a UIScrollView which is, in my storyboard, fixed to the main view of my View Controller (space constraints to superview 0,0,0,0).

Code is pretty straightforward :

__weak ALExploreViewController *weakSelf = self;
[self.globalScrollView addPullToRefreshWithActionHandler:^{
[weakSelf refreshData];
}];
[self.globalScrollView triggerPullToRefresh];

The thing is, when I launch the app, the pull to refresh appears as I manually triggered it. Then I make it disappear when my data are updated (self.globalScrollView.showsPullToRefresh = NO;). And then when I scroll up to refresh, the "pull to refresh" view won't show. If I deactivate bouncing, the view won't event scroll upper than y=0, and if I activate it, it bounces but no sign of the P2R view.

Any ideas ? Please ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant