针对 iOS4.2 进行构建并将部署目标设置为 3.2 会导致方向问题
基本上这个问题说明了一切。我正在针对 4.2 版 SDK 构建一个 iPad 应用程序,我的客户正在安装了 3.2.2 版本的设备上测试该应用程序,但他们遇到了严重的方向问题(当设备方向更改时,视图完全混乱)。
奇怪的是,该应用程序之前是针对 3.2 构建的,运行良好,并且对支持方向更改的 UIView Delegate 部分没有进行任何更改。我唯一的想法是 iOS4.2 中发生了一些变化,导致了这个问题。
我很清楚支持操作系统的整个版本并不是真正的最佳实践,我很乐意继续针对 3.2 构建应用程序,因为我没有使用 4.0+ 中出现的任何功能(甚至是由于多任务处理)应用程序的性质),但由于 Apple 在每次升级 Xcode 时都摆脱了旧版本的 SDK,我无法执行此操作:\
有关测试与旧版本操作系统的兼容性的方法或建议的任何建议在支持的最低操作系统上(我的想法是 4.0)。
谢谢 :)
Basically the question says it all. I am building an iPad app against version 4.2 of the SDK, and my client is testing the app on a device with 3.2.2 installed, and they are having terrible orientation problems (views totally messing up when the device orientation is changed).
The strange thing is that the app has been built against 3.2 previously, worked fine, and has had no changes made to the parts of the UIView Delegate that support orientation changes. My only thought is that something has changed in iOS4.2 that is causing the problem.
I'm well aware that supporting OS's a whole version ago isn't really best practice, and I would happily continue building the app against 3.2 as I'm not using any features that have surfaced in 4.0+ (even multi-tasking due to the nature of the app), but thanks to Apple getting rid of older versions of the SDK each time you upgrade Xcode I can't do this :\
Any suggestions of either a way of testing compatibility with older versions of the OS, or recommendations on a minimum OS to support (my thought is 4.0).
Thanks :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我敢打赌,当他们更换方向锁的时候,他们把 API 弄乱了。 iPad 用户是市场上最忠实的苹果用户之一。运行旧版本的人会很少。我只是硬着头皮支持 4.0 及更高版本。
I bet they messed with the API when they swapped out the orientation lock stuff. iPad users are some of the most dedicated apple users in the marketplace. There are going to be very few running older versions. I'd just bite the bullet and support 4.0 and up.