Browse Source

test ios 11

Marino Faggiana 7 years ago
parent
commit
0b8d6fb9fe
3 changed files with 1 additions and 7 deletions
  1. 0 3
      iOSClient/Favorites/CCFavorites.m
  2. 0 3
      iOSClient/Main/CCMain.m
  3. 1 1
      iOSClient/Main/CCMore.swift

+ 0 - 3
iOSClient/Favorites/CCFavorites.m

@@ -72,9 +72,6 @@
     self.tableView.emptyDataSetDelegate = self;
     self.tableView.emptyDataSetSource = self;
     self.tableView.delegate = self;
-    if (@available(iOS 11, *)) {
-        self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
-    }
     
     // calculate _serverUrl
     if (!_serverUrl)

+ 0 - 3
iOSClient/Main/CCMain.m

@@ -140,9 +140,6 @@
     self.tableView.delegate = self;
     self.tableView.tableFooterView = [UIView new];
     self.tableView.separatorColor = [NCBrandColor sharedInstance].seperator;
-    if (@available(iOS 11, *)) {
-        self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
-    }
     self.tableView.emptyDataSetDelegate = self;
     self.tableView.emptyDataSetSource = self;
     self.searchController.delegate = self;

+ 1 - 1
iOSClient/Main/CCMore.swift

@@ -55,7 +55,7 @@ class CCMore: UIViewController, UITableViewDelegate, UITableViewDataSource, CCLo
         tableView.separatorColor = NCBrandColor.sharedInstance.seperator
         
         if #available(iOS 11.0, *) {
-            tableView.contentInsetAdjustmentBehavior = .never
+            //tableView.contentInsetAdjustmentBehavior = .never
         }
         
         themingBackground.image = UIImage.init(named: "themingBackground")