Permalink
Browse files

Merge pull request #36 from aidanns/master

Fixed a bug where the original footer was not properly saved
  • Loading branch information...
2 parents 125a928 + 488f421 commit e72c40763b90ad9acd97af40366bc42d8ec39e64 @samvermette committed Jul 7, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 SVPullToRefresh/SVPullToRefresh.m
@@ -187,13 +187,11 @@ - (void)setPullToRefreshActionHandler:(void (^)(void))actionHandler {
}
- (void)setInfiniteScrollingActionHandler:(void (^)(void))actionHandler {
+ self.originalTableFooterView = [(UITableView*)self.scrollView tableFooterView];
infiniteScrollingActionHandler = [actionHandler copy];
self.showsInfiniteScrolling = YES;
-
self.frame = CGRectMake(0, 0, self.scrollView.bounds.size.width, SVPullToRefreshViewHeight);
- self.originalTableFooterView = [(UITableView*)self.scrollView tableFooterView];
[(UITableView*)self.scrollView setTableFooterView:self];
-
self.state = SVPullToRefreshStateHidden;
[self layoutSubviews];
}

0 comments on commit e72c407

Please sign in to comment.