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

Adding Pull-to-refresh #179

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

praveenaj
Copy link

Steps:

/* ExampleViewController.m */

- (void)viewDidLoad
{
    [super viewDidLoad];

    //configure swipeView
    _swipeView.pagingEnabled = YES;
    _swipeView.pullToRefresh = YES; // Adds UIRefreshControl
    _swipeView.vertical = YES; // Must be vertical for UIRefreshControl to work
}

/* Handler for UIRefreshControl */

-(void)swipeViewHandleRefresh:(SwipeView *)swipeView{
    // Perform network call
   // [_swipeView.refreshControl endRefreshing];
}

@JubrilO
Copy link

JubrilO commented Jan 27, 2017

Thanks @praveenaj

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

Successfully merging this pull request may close these issues.

2 participants