Fix problems of orientation for iOS8 on phone

This commit is contained in:
Guillaume BIENKOWSKI 2014-09-29 10:20:28 +02:00
parent 90a6c98f83
commit af15a700b9
2 changed files with 2 additions and 7 deletions

View file

@ -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;

View file

@ -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 {