Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSInteger _downloads;
- -(IBAction)refresh:(id)sender{
- if (_downloads == 0) {
- [self refreshAction];
- }
- }
- - (void)downloadStarted {
- _downloads++;
- }
- - (void)downloadFinished {
- _downloads--;
- if (_downloads == 0 && self.refreshControl.refreshing) {
- [self refreshAction];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement