mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 00:59:20 +00:00
Fix problems of orientation for iOS8 on phone
This commit is contained in:
parent
90a6c98f83
commit
af15a700b9
2 changed files with 2 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue