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

How to expand manually #49

Open
dvkch opened this issue Oct 15, 2014 · 1 comment
Open

How to expand manually #49

dvkch opened this issue Oct 15, 2014 · 1 comment

Comments

@dvkch
Copy link

dvkch commented Oct 15, 2014

Hi,

I'm looking for a way to programmatically show the refresh control so it's visible when opening my view controller. Any way to do this? I couldn't find any yet.

Thanks!

@dvkch
Copy link
Author

dvkch commented Oct 16, 2014

Fixed:

@interface SSPullToRefreshView ()
- (void)_setState:(SSPullToRefreshViewState)state animated:(BOOL)animated expanded:(BOOL)expanded completion:(void (^)(void))completion;
@end

@implementation DUPullToRefreshView
- (void)startForcedLoad:(BOOL)animated
{
    [super _setState:SSPullToRefreshViewStateLoading animated:animated expanded:YES completion:nil];
}
@end

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

1 participant