iPad\iPhone应用程序结构
我将构建一个 iOS 应用程序,该应用程序将具有不同的 iPad\iPhone 视图,但会共享一些业务逻辑。我想在不同的 XCode 项目中开发应用程序,而不是在通用模式下(因为这需要较少的开发和测试)。
我从《iPad 编程指南》中了解到,“创建通用应用程序可以让您销售一款支持所有设备类型的应用程序”。
我想允许这种行为,但仍然在两个不同的 XCode 项目(iPad 和 iPhone)上进行开发。有办法这样做吗?也许使用相同的应用程序 ID?
I am going to build an iOS application that will have different iPad\iPhone views, but will share some business logic. I want to develop the application in different XCode projects, not in a universal mode (as this will require less development and testing).
I understood from the 'iPad Programming Guide', that "Creating a universal application allows you to sell one application that supports all device types".
I would like to allow this behavior, but still develop on two different XCode projects (iPad and iPhone). Is there a way to do so? Maybe using the same application id?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请勿将应用程序拆分为单独的 iPhone 和 iPad 应用程序,除非您要向 iPad 应用程序添加一些重要功能以保证其作为一个完整的应用程序单独的应用程序。
我这样说是因为我刚刚这样做了 - (我有一个现有的应用程序,并发布了它的单独 iPad 版本。)Apple 出于这个原因拒绝了该应用程序。
请参阅 Apple 的指南:https://developer.apple.com/appstore/resources/approval /guidelines.html
这里还有关于创建通用应用程序的信息:
http:// /devimages.apple.com/iphone/resources/introductiontouniversalapps.pdf
Do not split the app into separate iPhone and iPad apps, unless you are adding some significant functionality to the iPad app to warrant it as a completely separate app.
I say this because I just did this - (I had an existing app, and release a separate iPad version of it.) Apple rejected the application for this reason.
See Apple's guidlines: https://developer.apple.com/appstore/resources/approval/guidelines.html
There is also info on creating universal apps here:
http://devimages.apple.com/iphone/resources/introductiontouniversalapps.pdf
您只需开发一款专门针对 iPad 的应用程序,以及一款专门针对 iPhone/iPod Touch 的应用程序。许多应用程序都这样做,包括 Things 和 Things for iPad。创建两个单独的应用程序也可以增加您的收入,因为有些人同时拥有这两种设备;如果他们真的喜欢你的应用程序,他们会购买两次。
You can just develop one app specifically for the iPad, and one specifically for the iPhone/iPod Touch. Many apps do this, including Things and Things for iPad. Creating two separate apps could increase your revenue, as well, since some people have both devices; if they really like your app, they will purchase it twice.
我建议不要拆分项目...这是因为当您开发通用应用程序时,它会作为一个
myApp.app
捆绑包加载到手机上。实际上,为不同平台编写代码相当简单,只需更改屏幕分辨率/使用不同的笔尖即可。基本逻辑和底层代码应该保持不变。Ray Wenderlich 发布了关于如何做到这一点的很棒的教程。
I would recommend against splitting the projects... That's because when you develop a universal application, it comes as one
myApp.app
bundle that gets loaded on the phone. It's actually rather trivial to code for the different platforms, and just a matter of screen resolution changes/a different nib. Basic logic and underlying code should remain the same.Ray Wenderlich has posted a great tutorial on how to do this.