Combining iPhone/iPad apps into one universal app

假装没事ソ 提交于 2019-12-06 11:29:36

In a universal app there is only one binary. You do not "compile for the iPad and vice versa for the iPhone". Both device run the same code. All decisions on what to do and what to load have to be made at runtime.

I'm not sure what Apple is going to do when one can develop both iPhone and iPad apps for version 4.0 , but right now, if you want to test in the simulator for either do the following:

  • For testing as an iPhone app set the Simulator to version 3.1.3
  • For testing as an iPad app set the Simulator to version 3.2

This is how XCode/the iPhone Simulator currently determine which simulation to run.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!