You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When all my data source is ended now I don't want this refresh control to appear no matter how many times user scrolls down. I have kept a bool to mark end of datasource. But pulltoRefresh sticks at end of my table view showing Loading with activity indicator.
This is how my code looks like
What I did is add a condition on the loadTable:
So when the result data is less than total data to download I will keep the PTRV visible or else I set visible to NO.
When all my data source is ended now I don't want this refresh control to appear no matter how many times user scrolls down. I have kept a bool to mark end of datasource. But pulltoRefresh sticks at end of my table view showing Loading with activity indicator.
This is how my code looks like
if (!self.dataSourceEnded) {
[self performSelector:@selector(loadTable) withObject:nil afterDelay:0.1];
}
else {
[pullToRefreshManager_ tableViewReloadFinished];
}
}
The text was updated successfully, but these errors were encountered: