简体   繁体   中英

iPhone/iPad - Breaking universal into iPhone app only

I started my Universal app coding that makes the app run on iPhone and iPad. But later the requirement changed to make the app just for iPhone. What are the changes to be made and where to change so that my app is no more an Universal application and make sure that it runs only on iPhone. (Ofcourse it can still run on iPad with 2x button on it)

In XCode 4 it is as simple as clicking your project file in the project navigator and changing Devices under iOS Application target to iPhone. Then what you want to do is remove all resources that only the iPad was using (images, interfaces) to save space. This can be done in the Build Phases tab.There will still be iPad items in places such as the plist file you can remove and you may just want to do a search for iPad in your project to remove any more unwanted references.

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