From 71bf36057d6c6ebb90b304d52d5756ba6b319295 Mon Sep 17 00:00:00 2001 From: Petro Rovenskyy Date: Fri, 18 Sep 2015 20:38:13 +0300 Subject: [PATCH] Fixed warning for Xcode 7(7A220) and iOS 9. --- SWRevealViewController/SWRevealViewController.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SWRevealViewController/SWRevealViewController.m b/SWRevealViewController/SWRevealViewController.m index d378d13..1e3118f 100755 --- a/SWRevealViewController/SWRevealViewController.m +++ b/SWRevealViewController/SWRevealViewController.m @@ -762,7 +762,12 @@ - (void)viewDidAppear:(BOOL)animated } +// Fix warning for Xcode 7(7A220) and iOS 9 +#if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000 - (NSUInteger)supportedInterfaceOrientations +#else +- (UIInterfaceOrientationMask)supportedInterfaceOrientations +#endif { // we could have simply not implemented this, but we choose to call super to make explicit that we // want the default behavior.