使用不同的 xib 文件为 iPhone 和 iPad 编译相同的 Xcode 项目

发布于 2024-09-20 00:22:46 字数 102 浏览 3 评论 0原文

我想知道是否可以为 iPhone 和 iPad 编译相同的 Xcode 项目,根据平台自动更改 xib 文件。该项目将包含两个 xib 文件。如果可以的话,该怎么做呢?

谢谢

I would like to know if it's possible to compile the same Xcode project for both iPhone and iPad, automatically changing the xib file according to the platform. The project will contain both xib files. If this is possible, how can be done?

Thanks

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

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

发布评论

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

评论(1

池木 2024-09-27 00:22:46

您可以创建包含两种应用程序支持的通用应用程序。

创建新的Xcode项目>基于窗口的应用程序,从下拉菜单中选择通用。

它将为您提供两个不同的文件,一个用于 iPhone,另一个用于 iPad。

并检查此链接了解一切关于你的问题。

You can create Universal application which contains both kind of application supporting.

Create new Xcode project > Window based application in that select Universal from drop down menu.

it will provide you two different files one for iphone and another for ipad.

and check this link to know every thing about you question.

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