Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #24 from chapados/copy-actionhandler-blocks

Copy actionHandler blocks in block setter methods.
  • Loading branch information...
commit 0f4482dde86d3c002c28c5879e0b43d2745e7be8 2 parents 5daa615 + f93efca
@samvermette samvermette authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 SVPullToRefresh/SVPullToRefresh.m
View
4 SVPullToRefresh/SVPullToRefresh.m
@@ -173,7 +173,7 @@ - (UIEdgeInsets)originalScrollViewContentInset {
#pragma mark - Setters
- (void)setPullToRefreshActionHandler:(void (^)(void))actionHandler {
- pullToRefreshActionHandler = actionHandler;
+ pullToRefreshActionHandler = [actionHandler copy];
[_scrollView addSubview:self];
self.showsPullToRefresh = YES;
@@ -191,7 +191,7 @@ - (void)setPullToRefreshActionHandler:(void (^)(void))actionHandler {
}
- (void)setInfiniteScrollingActionHandler:(void (^)(void))actionHandler {
- infiniteScrollingActionHandler = actionHandler;
+ infiniteScrollingActionHandler = [actionHandler copy];
self.showsInfiniteScrolling = YES;
self.frame = CGRectMake(0, 0, self.scrollView.bounds.size.width, 60);
Please sign in to comment.
Something went wrong with that request. Please try again.