对于使用 Base SDK 4.2 的通用 iPad/iPhone 应用程序,iPhoneOS 3.x 中的 keyWindow 大小错误
我有一个 iPad/iPhone 应用程序,需要兼容 iPhoneOS 3.x
当我尝试在 iPhone 3.x 中显示 UIActionSheet
时,屏幕变暗,并且操作表显示在某处离开屏幕。原因是 UIWindow
键的 {0, 0, 768, 1024} 的框架错误。在更高版本的 iOS 上,keyWindow 具有预期大小,具体取决于设备。
任何想法可能是什么原因造成这个问题?
提前致谢...
I have an iPad/iPhone app which I need to make compatible down to iPhoneOS 3.x
When I try to show a UIActionSheet
in iPhone 3.x, the screen becomes darker and the action sheet is shown somewhere off the screen. The reason is that the key UIWindow
has the wrong frame of {0, 0, 768, 1024}. On later iOS versions the keyWindow has the expected size depending on the device.
Any ideas what the cause of this problem might be?
Thanks in advance...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发现问题,在此发布以供将来参考:
由于该项目最初是为 iPad 创建的,
mainWindow.xib
的大小为 1024x768。将其更改为 480x320,现在一切正常,每个 iOS 和每个设备。希望这对某人有帮助!
Found the problem, posting here for future reference:
Since the project was first created for iPad,
mainWindow.xib
had a size of 1024x768. Changed it to be 480x320 and now everything works, every iOS and every device.Hope this helps somebody!