From af15a700b9c10c330898dab00ed6db2e20acea23 Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Mon, 29 Sep 2014 10:20:28 +0200 Subject: [PATCH] Fix problems of orientation for iOS8 on phone --- Classes/ChatRoomViewController.m | 2 +- Classes/PhoneMainView.m | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Classes/ChatRoomViewController.m b/Classes/ChatRoomViewController.m index c51b94ca7..aaadf0902 100644 --- a/Classes/ChatRoomViewController.m +++ b/Classes/ChatRoomViewController.m @@ -108,7 +108,7 @@ static UICompositeViewDescription *compositeDescription = nil; tabBar:/*@"UIMainBar"*/nil tabBarEnabled:false /*to keep room for chat*/ fullscreen:false - landscapeMode:true + landscapeMode:[LinphoneManager runningOnIpad] portraitMode:true]; } return compositeDescription; diff --git a/Classes/PhoneMainView.m b/Classes/PhoneMainView.m index d360fa9b6..7e3b2bdff 100644 --- a/Classes/PhoneMainView.m +++ b/Classes/PhoneMainView.m @@ -193,14 +193,9 @@ static PhoneMainView* phoneMainViewInstance=nil; } } -- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { - if(interfaceOrientation == self.interfaceOrientation) - return YES; - return NO; -} - (NSUInteger)supportedInterfaceOrientations { - return 0; + return UIInterfaceOrientationMaskPortrait; } - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {