简体   繁体   English

将iPad应用程序转换为iPhone应用程序的最佳实践?

[英]Best practice to transform ipad app to iphone app?

I have made an iPad application and know I want to make an unique application for iPad / iPhone. 我已经制作了一个iPad应用程序,并且知道我想为iPad / iPhone创建一个独特的应用程序。 I have started to create a new xib and modify my code with idiom to detect the system the app is running on. 我已经开始创建一个新的xib,并用惯用语修改我的代码以检测应用程序正在运行的系统。 But I have some questions: How can I reuse my ipad implementation? 但是我有一些问题:如何重用我的ipad实现? Given the files: iphone.xib, iphone.h, iphone.m, ipad.xib, ipad.m, ipad.h, what is the best way to prevent adding the same code in iphone.m and ipad.m ? 给定以下文件:iphone.xib,iphone.h,iphone.m,ipad.xib,ipad.m,ipad.h,防止在iphone.m和ipad.m中添加相同代码的最佳方法是什么?

请检查以下说明如何创建通用应用程序的链接: http : //blog.corywiles.com/creating-a-universal-ios-app-tutorial

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

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