简体   繁体   中英

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. I have started to create a new xib and modify my code with idiom to detect the system the app is running on. But I have some questions: How can I reuse my ipad implementation? 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 ?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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