简体   繁体   English

如何将仅iPad的应用程序转换为通用应用程序?

[英]How can I convert an iPad only app into a Univeral app?

I recently wrote an iPad app that I would like to make a universal app. 我最近写了一个iPad应用,我想制作一个通用应用。

What is the best way to do this? 做这个的最好方式是什么? Can I simply create two versions of my XIB files and load the appropriate XIB based upon the device? 我可以简单地创建两个版本的XIB文件并根据设备加载适当的XIB吗?

This should help you out a lot: http://iphonedevelopment.blogspot.com/2010/04/converting-iphone-apps-to-universal.html 这应该对您有很大帮助: http : //iphonedevelopment.blogspot.com/2010/04/converting-iphone-apps-to-universal.html

Yes, you can create 2 xib files for every screen (one for iPad, and one for iPhone/iPod). 是的,您可以为每个屏幕创建2个xib文件(一个用于iPad,一个用于iPhone / iPod)。

Yes, you do need 2 .xib files for every screen. 是的,每个屏幕确实需要2个.xib文件。 The tutorial that NeilMonday posted is helpful, but I found this one to be better: http://www.raywenderlich.com/1111/how-to-port-an-iphone-application-to-the-ipad NeilMonday发布的教程很有帮助,但我发现这个教程更好: http ://www.raywenderlich.com/1111/how-to-port-an-iphone-application-to-the-ipad

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM