iPad ModalView旋转问题
我创建了一个 UISplitView,在 splitView 以横向模式加载后,我使用presentModalView 显示 modalView,我的问题是 modalView 始终处于纵向模式,找不到解决方案。
UIDeviceOrientationorientation = [[UIDevice currentDevice]orientation];
它给我横向方向,但使用
UIDeviceOrientationorientation=[[UIApplicationsharedApplication]statusBarOrientation]
给我纵向。 (在 4.2 下不工作)
谢谢,
I created a UISplitView, after the splitView is load in landscape mode, I display a modalView using the presentModalView, my problem is that the modalView is always in portrait mode, can't find the solution for that.
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
it gives me the landscape orientation but using
UIDeviceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation]
gives me Portrait. (not working under 4.2)
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我正在使用 NSTimer 并使用它和它的工作来管理我的功能,这有点棘手,但这是我现在找到的唯一解决方案。
i'm using an NSTimer and loas my function with it and its work, thats a bit tricky but that is the only solution I found right now.