Просмотр исходного кода

Use more accurate type for -supportedInterfaceOrientations

The iOS 9 headers fix the return type for -supportedInterfaceOrientations. This mutes an Xcode 7 warning.
Ryan Olson лет назад: 11
Родитель
Сommit
c250200d03
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Classes/ExplorerToolbar/FLEXExplorerViewController.m

+ 2 - 2
Classes/ExplorerToolbar/FLEXExplorerViewController.m

@@ -137,10 +137,10 @@ typedef NS_ENUM(NSUInteger, FLEXExplorerMode) {
     return viewController;
 }
 
-- (NSUInteger)supportedInterfaceOrientations
+- (UIInterfaceOrientationMask)supportedInterfaceOrientations
 {
     UIViewController *viewControllerToAsk = [self viewControllerForRotationAndOrientation];
-    NSUInteger supportedOrientations = [FLEXUtility infoPlistSupportedInterfaceOrientationsMask];
+    UIInterfaceOrientationMask supportedOrientations = [FLEXUtility infoPlistSupportedInterfaceOrientationsMask];
     if (viewControllerToAsk && viewControllerToAsk != self) {
         supportedOrientations = [viewControllerToAsk supportedInterfaceOrientations];
     }