samvermette / SVPullToRefresh

Give pull-to-refresh & infinite scrolling to any UIScrollView with 1 line of code.
http://samvermette.com/314
MIT License
4.82k stars 1.09k forks source link

Doesn't SVPullToRefresh work in a subViewController #213

Closed SSCedric closed 10 years ago

SSCedric commented 10 years ago

deal all: I add SVPullToRefresh into my project, but it doesn't work in it.

my code:

[self.table addPullToRefreshWithActionHandler:^{
    [weakSelf refreshData];
}];

[self.table addInfiniteScrollingWithActionHandler:^{
    [weakSelf loadMoreData];
}];

I try to use the same code in a new project.The consequence proved that i didn't meet a mistake. I doubt that SVPullToRefresh doesn't work in a subViewController(I add two ViewController into a ViewController as subVC).