Skip to content

Adding Pull-to-refresh - #179

Open
praveenaj wants to merge 8 commits into
nicklockwood:masterfrom
praveenaj:feature-pull-to-refresh
Open

Adding Pull-to-refresh#179
praveenaj wants to merge 8 commits into
nicklockwood:masterfrom
praveenaj:feature-pull-to-refresh

Conversation

@praveenaj

Copy link
Copy Markdown

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

JubrilO commented Jan 27, 2017

Copy link
Copy Markdown

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