先开发iPad版还是iPhone版?

发布于 2024-12-22 16:46:18 字数 429 浏览 2 评论 0原文

我刚刚完成了 iPhone 应用程序的开发,现在我希望将其打造为通用应用程序。我在将 UISplitView 合并到当前代码中以容纳多个详细视图时遇到问题。我查看了 Apple 的 MultipleDetailViews 示例代码,并尝试插入到我的项目中,但它变得比应有的更令人头痛。

我将把 Apple 的 MultipleDetailViews 示例代码中的所有项目文件复制到我的项目中,调整我的应用程序委托来检查 iPad 是否正在运行,设置窗口以添加 splitViewController.view 的子视图,但我得到的只是空白屏幕当我构建并运行时。

所以我的问题是,我是否可以从新项目开发 iPad 版本,然后在完成后添加我的 iPhone 项目文件?

或者

我是否制作了一个单独的 iPad 应用程序并忘记了整个通用应用程序?

想法和建议将不胜感激。

I have just finished developing an iPhone app and now I wish to make it a Universal App. I'm having issues incorporating a UISplitView into my current code to accommodate multiple detail views. I have looked at Apple's MultipleDetailViews sample code and have tried to insert into my project but it's becoming more of a headache than it should.

I'll copy all the project files from Apple's MultipleDetailViews sample code into my project, adjust my app delegate to check to see if an iPad's running, set the window to add a subView of splitViewController.view, but all I get is blank white screen when I build and run.

So my question is, do I develop the iPad version from a new project and then add my iPhone project files when I'm done?

OR

Do I make a separate iPad app and forget the whole Universal App?

Thoughts and suggestions would be much appreciated.

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

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

发布评论

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

评论(2

顾忌 2024-12-29 16:46:18

我会从通用项目开始并为 iPad 生成内容,我发现下采样比上采样更容易:)。尝试使所有内容通用(基于视图高度和宽度)。这将使转换到 iPhone/iPod 变得更加容易。

I would start with a Universal Project and generate content for the iPad, I've found downsampling easier than upscaling :). Try and make everything generic (based off the view height and width). This will make conversion to the iPhone/iPod easier.

左秋 2024-12-29 16:46:18

我认为从一开始就创建通用版本不仅仅是检查 iPad 视图。

您需要在构建设置中将项目设置为通用构建。我知道通用的默认项目会创建一组带有 iPhone 和 iPad 主视图的文件夹。您需要为 iPhone 和 iPad 创建单独的视图。

我将创建一个通用的虚拟项目并比较设置和默认值。尝试将这些添加到您的项目中,看看是否有更好的结果。

但我认为你不应该把一个放在另一个之前。首先构建您认为最成功的一个,然后如果您仍然需要它,再构建另一个。祝你好运。

I think there is more to creating a Universal build from the outset than just checking for iPad view.

You need to set the project up as a universal build in the build settings. I know default projects that are universal create a group of folders with a main view for iPhone and iPad. You will need to create separate views for iPhone and iPad.

I would create a dummy project that is universal and compare settings and default values. Try adding these to your project and see if you have better results.

But I wouldn't think you should put one before the other. Build the one you think you will have the most success with first, then if you still need it, build out for the other. Good luck.

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