为应用设置最低iPhone OS版本? [英] Set minimum iPhone OS version for app?

查看:204
本文介绍了为应用设置最低iPhone OS版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我即将在应用程序商店发布应用程序,我希望将iTunes中显示的最低操作系统版本设置为需要iPhone OS 3.x或更高版本。 2个问题:

I'm about to publish an app on the app store, and I'm looking to set the minimum OS version as it appears in iTunes as "Requires iPhone OS 3.x or later". 2 questions:

1)我在Xcode项目中如何设置?

1) Where do I set this in my Xcode project?

2)我是了解仅在OS> 3.1中存在的UITableViewCell numberOfLines属性。如果我将最小值设置为OS 3.0,那么拥有3.1的人是否能够在编码时正确地看到行数? (显然3.0上的人将无法)

2) I'm aware of the UITableViewCell numberOfLines property that is present only in OS > 3.1. If I set my minimum as OS 3.0, will people who have 3.1 be able to see the number of lines properly as I coded? (Obviously people on 3.0 won't be able to)

谢谢。

推荐答案

您需要做的是更改项目中的部署目标设置。部署目标指定您希望应用程序运行的最低操作系统。这与您构建的SDK无关,它应该始终是最新的SDK,因此您可以确保您的应用程序在最新的OS版本上正确运行。所以,简而言之:

What you need to do is change the Deployment Target setting in your project. The Deployment Target specifies the minimum OS you would like your application to run on. This is regardless of the SDK you build against, which should always be the most recent SDK so you can ensure your application runs correctly on the most recent OS version available. So, in short:


  • 将Base SDK设置为最新的操作系统

  • 设置部署目标是您希望运行应用程序的最早的操作系统。

要回答第二个问题,如果您设置了部署目标到3.0只有3.1的代码将不再编译。

To answer your second question, if you set the Deployment Target to 3.0 your 3.1-only code will no longer compile. There are workarounds to that problem, however.

这篇关于为应用设置最低iPhone OS版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆