[英]in ipad ios 5.0 version can't display app in landscape mode
我在iphone和ipad,iphone應用程序在肖像(底部主頁按鈕)和ipad應用程序在橫向(右主頁按鈕),在ipad ios 6,7版本顯示應用程序橫向模式,但ios 5無法在橫向顯示
info.plist的屏幕截圖
ios 7截圖
ios 5截圖
請幫幫我
嘗試這個? - 方向在ios 5中不起作用,它在ios 6中工作
如何處理方向更改在iOS 5和6+之間發生了變化。
最后我在所有ipad viewcontroller中解決了寫belove方法
-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
return UIInterfaceOrientationLandscapeRight;
}
-(BOOL) shouldAutorotate {
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
return YES;
}
return NO;
}
-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskAll;
}
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
if (interfaceOrientation==UIInterfaceOrientationLandscapeRight) {
return YES;
}
}
return NO;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.