Turning an iPad app into a universal app
I've created an iPad app, and want to turn it into a universal app (i.e. one app that works for iPhone and iPad). The Apple docs seem to only talk about the "Upgrade Current Target for iPad" option. Is there an option to go the other way开发者_开发技巧?
I don't know if there is a better way to do this, but I think I would start by making a new blank universal app, and then copy in your iPad code/nibs/plists/etc.
Open the project in XCode and in the Project menu click "Edit Active Target (...)". Select "All Configurations" for Configuration. Under the Deployment heading you'll find "Target Device Family". you can use the search box to locate it. Edit and select iPhone/iPad to make the application universal.
精彩评论