Skip to content
This repository has been archived by the owner on Aug 24, 2019. It is now read-only.

Disable the SSPullToRefresh #29

Closed
ghost opened this issue Apr 19, 2013 · 3 comments
Closed

Disable the SSPullToRefresh #29

ghost opened this issue Apr 19, 2013 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 19, 2013

Hi, first of all nice work around this!

I am using SSPullToRefresh in one of my projects, but now i face a simple problem, i want to disable the refresh for a moment ( view in edit mode ) and i can't view the way to do it.

Any suggestions?

Regards from Portugal.

@vadimtrifonov
Copy link

I would love to see this option also.

@soffes
Copy link
Owner

soffes commented Apr 25, 2013

Do you mean disable the ability to pull to refresh? You can do that with a delegate method.

If you mean hide it, that would be cool. PRs welcome :)

@soffes
Copy link
Owner

soffes commented Nov 30, 2013

So I recently implemented something like this in Shares:

- (void)setEditing:(BOOL)editing animated:(BOOL)animated {
    [super setEditing:editing animated:animated];
    self.refreshControl.contentView.hidden = editing;
}


- (BOOL)pullToRefreshViewShouldStartLoading:(SSPullToRefreshView *)view {
    return !self.editing;
}

I don't think SSPullToRefresh needs anything else to support stuff like this since it's already super easy.

@soffes soffes closed this as completed Nov 30, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants