Skip to content

Commit

Permalink
Add infinite scrolling to demo project.
Browse files Browse the repository at this point in the history
  • Loading branch information
samvermette committed Jun 3, 2012
1 parent 358705c commit 5b3e201
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Demo/SVPullToRefreshDemo/SVViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ - (void)viewDidLoad {
[tableView.pullToRefreshView performSelector:@selector(stopAnimating) withObject:nil afterDelay:2];
}];

[self.tableView addInfiniteScrollingWithActionHandler:^{
NSLog(@"load more data");
}];

// trigger the refresh manually at the end of viewDidLoad
[tableView.pullToRefreshView triggerRefresh];

Expand Down

0 comments on commit 5b3e201

Please sign in to comment.