UIImagePickerController 与 iPhone 和 iPad 问题的区别
我有一个为 iPhone 设计的应用程序,它使用 UIImagePickerController。
该应用程序仅在横向运行,直到图像选择器以其默认纵向进入视图。
问题一: 在 iPhone 上,当我将设备旋转到纵向以查看图像库时,图像选择器视图似乎会翻转,就像从横向旋转到纵向一样?
问题2: 我收到可怕的警告“使用两阶段旋转动画”。要使用更平滑的单阶段动画,此应用程序必须删除两阶段方法实现。
问题3。 在 iPad 上,当选择图像时,图像选择器被关闭,视图又恢复为横向,但是......如果我随后执行任何需要警报视图或键盘的操作,它们会显示为设备处于纵向状态? iPhone 上不会出现这种情况???
我知道问题 2 是一个长期存在的问题,但请任何人都可以帮助解决问题 1 和 2。 3?
谢谢
I have an app designed for iPhone that makes use of the UIImagePickerController.
The app run in landscape only up until the image picker comes into view in its default portrait.
Problem 1:
On the iPhone when I rotate the device to portrait to view the image library the image picker view seems to do a flip as if rotating from landscape to portrait?
Problem 2:
I get the dreaded warning Using two-stage rotation animation. To use the smoother single-stage animation, this application must remove two-stage method implementations.
Problem 3.
on the iPad when selecting an image the image picker is dismissed and the view is back in landscape but ...... if I then do anything that requires alert view or the keyboard they appear as if the device is in portrait? This does not happen on the iPhone???
I know problem 2 is a long running issue but please can anyone help with problems 1 & 3?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
数字 3 已解决:-)
“键盘将以状态栏的方向显示,由于某种原因,状态栏的方向并不总是随着旋转而改变。因此,如果您想仅在横向模式下显示该视图,请设置 [UIApplication sharedApplication].statusBarOrientation = UIInterfaceOrientationLandscapeLeft; 或您想要在 viewWillAppear 方法中选择的方向。”
number 3 resolved :-)
"The keyboard will show up in the orientation of the statusbar, which doesn't always change with rotations for some reason. So if you want to display that view only in landscape set [UIApplication sharedApplication].statusBarOrientation = UIInterfaceOrientationLandscapeLeft; or whichever orientation you want to prefer in your viewWillAppear method."