[英]Flip view controller horizontally while in landscape mode on the iPad
My iPad app is set to landscape mode. 我的iPad应用程序设置为横向模式。 I tried to use
setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal
to have the view controller flip horizontally, but it does so as if it is still in portrait. 我试图使用
setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal
来使视图控制器水平翻转,但是这样做似乎仍然是纵向的。 Is there any way to fix this? 有没有什么办法解决这一问题?
http://aseriesoftubes.com/articles/ipad-development-101-orientation/ http://aseriesoftubes.com/articles/ipad-development-101-orientation/
check this sample tutorial.. it will help u.. 检查此示例教程..它将对您有帮助。
changing between views would be an solution for u... 在视图之间进行更改将是您的解决方案...
Have you thought to set the modal view into the landspace mode like this: 您是否考虑过将模态视图设置为陆地空间模式,如下所示:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return UIInterfaceOrientationIsLandscape(interfaceOrientation);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.