Browse Source

fix deleteRefreshControl

Marino Faggiana 7 years ago
parent
commit
160b514b28
1 changed files with 8 additions and 1 deletions
  1. 8 1
      iOSClient/Main/CCMain.m

+ 8 - 1
iOSClient/Main/CCMain.m

@@ -529,7 +529,14 @@
 - (void)deleteRefreshControl
 {
     [_refreshControl endRefreshing];
-    self.refreshControl = nil;
+    
+    for (UIView *subview in [_tableView subviews]) {
+        if (subview == _refreshControl)
+            [subview removeFromSuperview];
+    }
+    
+    _tableView.refreshControl = nil;
+    _refreshControl = nil;
 }
 
 - (void)refreshControlTarget