Chengming Liao лет назад: 7
Родитель
Сommit
129c91c876
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      Classes/GlobalStateExplorers/DatabaseBrowser/FLEXMultiColumnTableView.m

+ 4 - 1
Classes/GlobalStateExplorers/DatabaseBrowser/FLEXMultiColumnTableView.m

@@ -52,10 +52,13 @@ static const CGFloat kColumnMargin = 1;
     CGFloat topheaderHeight = [self topHeaderHeight];
     CGFloat topheaderHeight = [self topHeaderHeight];
     CGFloat leftHeaderWidth = [self leftHeaderWidth];
     CGFloat leftHeaderWidth = [self leftHeaderWidth];
     CGFloat topInsets = 0.f;
     CGFloat topInsets = 0.f;
-    
+
+    #if FLEX_AT_LEAST_IOS11_SDK
     if (@available (iOS 11.0, *)) {
     if (@available (iOS 11.0, *)) {
         topInsets = self.safeAreaInsets.top;
         topInsets = self.safeAreaInsets.top;
     }
     }
+    #endif
+    
     CGFloat contentWidth = 0.0;
     CGFloat contentWidth = 0.0;
     NSInteger rowsCount = [self numberOfColumns];
     NSInteger rowsCount = [self numberOfColumns];
     for (int i = 0; i < rowsCount; i++) {
     for (int i = 0; i < rowsCount; i++) {