Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update example

  • Loading branch information...
commit 39bea233179a8f7690cab9ef0c1473c80d5b50bb 1 parent 513f1d0
@soffes soffes authored
Showing with 10 additions and 12 deletions.
  1. +5 −7 Readme.markdown
  2. +5 −5 SSPullToRefreshView.h
View
12 Readme.markdown
@@ -15,12 +15,6 @@ If you're using SSPullToRefresh in your application, add it to [the list](https:
self.pullToRefreshView = [[SSPullToRefreshView alloc] initWithScrollView:self.tableView delegate:self];
}
-- (void)viewUnload {
- [super viewUnload];
- self.pullToRefreshView.delegate = nil;
- [self.pullToRefreshView removeFromSuperview];
-}
-
- (void)refresh {
[self.pullToRefreshView startLoading];
// Load data...
@@ -31,8 +25,12 @@ If you're using SSPullToRefresh in your application, add it to [the list](https:
[self refresh];
}
+- (void)viewUnload {
+ [super viewUnload];
+ [self.pullToRefreshView removeFromSuperview];
+}
+
- (void)dealloc {
- self.pullToRefreshView.delegate = nil;
[self.pullToRefreshView removeFromSuperview];
}
```
View
10 SSPullToRefreshView.h
@@ -13,11 +13,6 @@
// [super viewDidLoad];
// self.pullToRefreshView = [[SSPullToRefreshView alloc] initWithScrollView:self.tableView delegate:self];
// }
-//
-// - (void)viewDidUnload {
-// [super viewDidUnload];
-// [self.pullToRefreshView removeFromSuperview];
-// }
//
// - (void)refresh {
// [self.pullToRefreshView startLoading];
@@ -29,6 +24,11 @@
// [self refresh];
// }
//
+// - (void)viewDidUnload {
+// [super viewDidUnload];
+// [self.pullToRefreshView removeFromSuperview];
+// }
+//
// - (void)dealloc {
// [self.pullToRefreshView removeFromSuperview];
// }
Please sign in to comment.
Something went wrong with that request. Please try again.