Explorar o código

fix deleteRefreshControl

Marino Faggiana %!s(int64=7) %!d(string=hai) anos
pai
achega
160b514b28
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  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