iOS Development: How can I prevent an iPad from running a universal app in iPad mode?

前端 未结 9 1326
死守一世寂寞
死守一世寂寞 2020-12-31 04:50

I\'m diving into iOS development and I created a universal app that turned into an iPhone-only app. When it runs on the iPad, it just loads a white screen since there\'s no

9条回答
  •  北海茫月
    2020-12-31 05:32

    I think that something is wrong with your configuration, because if you target the code for iPhone only Device, the app will bu runnable on an iPad with the screen that was designed for iPhone (so, reduced, with the possibility to x2).

    • the proposals from the AppStore (iPhone/iPad/both) depend on the user's preferences
    • you can experiment it with the Simulator (and choose iPad as the Device)
    • the code is the same for iPad/iPhone ! ... unless you use [[UIDevice currentDevice] userInterfaceIdiom] mentioned supra...

提交回复
热议问题