Răsfoiți Sursa

fix compatibility ios 9

Marino Faggiana 7 ani în urmă
părinte
comite
1cf3a79fd2
1 a modificat fișierele cu 7 adăugiri și 2 ștergeri
  1. 7 2
      iOSClient/Main/CCMain.m

+ 7 - 2
iOSClient/Main/CCMain.m

@@ -513,8 +513,13 @@
 - (void)createRefreshControl
 {
     _refreshControl = [UIRefreshControl new];
-    _tableView.refreshControl = _refreshControl;
-   
+    
+    if (@available(iOS 10, *)) {
+        _tableView.refreshControl = _refreshControl;
+    } else {
+        [_tableView addSubview:_refreshControl];
+    }
+       
     _refreshControl.tintColor = [NCBrandColor sharedInstance].brandElement;
     _refreshControl.backgroundColor = [NCBrandColor sharedInstance].brand;