Browse Source

xcode 8 crash fix

yogevbd 6 years ago
parent
commit
570dba802c
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      ios/RCCViewController.m

+ 2
- 0
ios/RCCViewController.m View File

655
     }
655
     }
656
   }
656
   }
657
 
657
 
658
+  #if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_10_3
658
   if (@available(iOS 11.0, *)) {
659
   if (@available(iOS 11.0, *)) {
659
     if ([self.navigationController.navigationBar respondsToSelector:@selector(setPrefersLargeTitles:)]) {
660
     if ([self.navigationController.navigationBar respondsToSelector:@selector(setPrefersLargeTitles:)]) {
660
       NSNumber *prefersLargeTitles = self.navigatorStyle[@"largeTitle"];
661
       NSNumber *prefersLargeTitles = self.navigatorStyle[@"largeTitle"];
671
       }
672
       }
672
     }
673
     }
673
   }
674
   }
675
+  #endif
674
 }
676
 }
675
 
677
 
676
 
678