简体   繁体   English

iOS部署目标4.3,基础sdk 6.0无法在iOS 6设备上运行

[英]iOS deployment target 4.3, base sdk 6.0 not working on iOS 6 device

I have set my deployment target to 4.3 and the base SDK to 6.0 (as it comes with XCode 4.5) - when I run it on an iOS 5.1 device , everything works as expected, but as soon as I run it on an iOS 6 device , some problems come up. 我已将部署目标设置为4.3 ,将基本SDK设置为6.0 (因为它附带XCode 4.5) - 当我在iOS 5.1设备上运行时,一切都按预期工作,但是只要我在iOS 6设备上运行它,一些问题出现了。 Eg the views do not rotate anymore . 例如,视图不再旋转 Why is this happening? 为什么会这样? (I am using the shouldAutorotateToInterfaceOrientation method and I know that it is deprecated in iOS 6 , but when the deployment target is set to 4.3 - this should not matter, correct?) (我使用的是shouldAutorotateToInterfaceOrientation方法,我知道它在iOS 6中已被弃用,但是当部署目标设置为4.3时 - 这应该无关紧要,对吗?)

It does matter, with iOS6 it's not as easy as before, where you could be quite safe during iOS updates. 这很重要,iOS6并不像以前那么容易,在iOS更新期间你可以非常安全。

Your code will run okay on devices running < iOS6 您的代码将在运行<iOS6的设备上正常运行

If the devices run >= iOS6.0 the new rotation handling will be used, so you have to adapt to this ... 如果设备运行> = iOS6.0,将使用新的旋转处理,因此您必须适应这个...

Check this post 查看这篇文章

iOS 6 autorotation in simulator varies from actual iOS 6 device 模拟器中的iOS 6自动旋转与实际的iOS 6设备不同

The deployment target only indicates the lower iOS supported, you have to handle the new iOS 6 rotation 部署目标仅表示支持的iOS较低,您必须处理新的iOS 6轮换

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM