设置应用程序的最低 iPhone 操作系统版本?

发布于 2024-08-11 06:41:10 字数 257 浏览 2 评论 0原文

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

1) 我在 Xcode 项目中的哪里设置它?

2)我知道 UITableViewCell numberOfLines 属性仅存在于 OS > 中3.1.如果我将最低操作系统设置为 3.0,那么使用 3.1 的人是否能够在我编码时正确看到行数? (显然 3.0 上的人不能)

谢谢。

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) Where do I set this in my Xcode project?

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)

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

流云如水 2024-08-18 06:41:10

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

  • 将基础 SDK 设置为可用的最新操作系统
  • 将部署目标设置为您希望应用程序运行的最早的操作系统。

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

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:

  • Set the Base SDK to be the latest OS available
  • Set the Deployment Target to be the earliest OS you'd like your app to run on.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文