Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reset the isLoading flag before the animation to hide the pull to ref…
…resh view. Fixes issue leah#2. Thanks thinkey!
  • Loading branch information
leah committed Aug 21, 2010
1 parent 69fe075 commit 266caa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/PullRefreshTableViewController.m
Expand Up @@ -129,6 +129,8 @@ - (void)startLoading {
}

- (void)stopLoading {
isLoading = NO;

// Hide the header
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDelegate:self];
Expand All @@ -140,8 +142,6 @@ - (void)stopLoading {
}

- (void)stopLoadingComplete:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context {
isLoading = NO;

// Reset the header
refreshLabel.text = self.textPull;
refreshArrow.hidden = NO;
Expand Down

0 comments on commit 266caa5

Please sign in to comment.