Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #36 from aidanns/master

Fixed a bug where the original footer was not properly saved
  • Loading branch information...
commit e72c40763b90ad9acd97af40366bc42d8ec39e64 2 parents 125a928 + 488f421
@samvermette authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 SVPullToRefresh/SVPullToRefresh.m
View
4 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];
}
Please sign in to comment.
Something went wrong with that request. Please try again.