gpt4 book ai didi

iphone - 在 XCode 4.6 上为 iOS5 创建项目

转载 作者:可可西里 更新时间:2023-11-01 04:30:59 25 4
gpt4 key购买 nike

请告诉我,我如何在我的 XCode 4.6 中为 iOS5 + 创建项目,所有构建都为 iOS6 +

我更改部署目标

enter image description here

如何更改基础 SDK?或者也许我无法更改它?

enter image description here

我必须做的是,如果我尝试使用只能在 iOS 6+ 中使用的方法,我的 XCode 会向我显示警告吗?

最佳答案

First you should understand a few things. Deployment target is the minimum OS version that your app supports. If you set into iOS 5.0 you can assure that it's support iOS 5.0 and above. Base SDK is the SDK which is used to compile your application. Always use latest SDK available.

If you want to create app that support iOS5.0 and above set deployment target as 5.0. Then use latest SDK available. The reason is that if you change base SDK to some lower version, your app may not support ios6 since some of the methods are deprecated in iOS6. If you compile it with latest SDK it shows warning. You can test your app by installing different simulators to check wether it is working properly. Mainly you need to handle orientation issues since it is different in both.

您可以使用条件编译。请记住不要使用 autoLayoutattributed 字符串。 ios5不支持

关于iphone - 在 XCode 4.6 上为 iOS5 创建项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15185130/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com