From b45830cce0837fa668838554e023979497673c82 Mon Sep 17 00:00:00 2001 From: Aleksi Pousar Date: Fri, 5 Jan 2018 09:37:14 +0200 Subject: [PATCH] Readme fix for iOS setup (#261) * README to have correct way to setup iOS --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b679d34d..5f037f48 100644 --- a/README.md +++ b/README.md @@ -82,13 +82,10 @@ Add the following to your project's `AppDelegate.m`: // ... - - (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window { - while ([[UIDevice currentDevice] isGeneratingDeviceOrientationNotifications]) { - [[UIDevice currentDevice] endGeneratingDeviceOrientationNotifications]; - } +- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window { + return [Orientation getOrientation]; +} - return [Orientation getOrientation]; - } @end ```