Permalink
Browse files

Hilarious typeo

  • Loading branch information...
1 parent 6a9455c commit 870a8dec4a016044f62b69679dbd9adbc09766b1 @soffes soffes committed May 18, 2012
Showing with 7 additions and 7 deletions.
  1. +1 −1 Readme.markdown
  2. +2 −2 SSPullToRefreshView.h
  3. +4 −4 SSPullToRefreshView.m
View
@@ -17,7 +17,7 @@ There are dozens of pull to refresh views. I've never found one I'm happy with.
[self.pullToRefreshView finishLoading];
}
-- (void)pullToRefreshViewShouldRefreshDidStartLoading:(SSPullToRefreshView *)view {
+- (void)pullToRefreshViewDidStartLoading:(SSPullToRefreshView *)view {
[self refresh];
}
```
View
@@ -96,8 +96,8 @@ typedef enum {
@optional
- (BOOL)pullToRefreshViewShouldStartLoading:(SSPullToRefreshView *)view;
-- (void)pullToRefreshViewShouldRefreshDidStartLoading:(SSPullToRefreshView *)view;
-- (void)pullToRefreshViewShouldRefreshDidFinishLoading:(SSPullToRefreshView *)view;
+- (void)pullToRefreshViewDidStartLoading:(SSPullToRefreshView *)view;
+- (void)pullToRefreshViewDidFinishLoading:(SSPullToRefreshView *)view;
- (NSDate *)pullToRefreshViewLastUpdatedAt:(SSPullToRefreshView *)view;
@end
View
@@ -43,13 +43,13 @@ - (void)setState:(SSPullToRefreshViewState)state {
// Update delegate
if (loading && _state != SSPullToRefreshViewStateLoading) {
- if ([_delegate respondsToSelector:@selector(pullToRefreshViewShouldRefreshDidFinishLoading:)]) {
- [_delegate pullToRefreshViewShouldRefreshDidFinishLoading:self];
+ if ([_delegate respondsToSelector:@selector(pullToRefreshViewDidFinishLoading:)]) {
+ [_delegate pullToRefreshViewDidFinishLoading:self];
}
} else if (!loading && _state == SSPullToRefreshViewStateLoading) {
[self _setPullProgress:1.0f];
- if ([_delegate respondsToSelector:@selector(pullToRefreshViewShouldRefreshDidStartLoading:)]) {
- [_delegate pullToRefreshViewShouldRefreshDidStartLoading:self];
+ if ([_delegate respondsToSelector:@selector(pullToRefreshViewDidStartLoading:)]) {
+ [_delegate pullToRefreshViewDidStartLoading:self];
}
}
}

0 comments on commit 870a8de

Please sign in to comment.