iOs device-specific resources not working - ~iPad loading default XIB - universal app

前端 未结 2 407
醉话见心
醉话见心 2021-02-04 20:16

I\'m making a universal app based on the Utility App template. I\'ve selected a universal app and the MainView.xib and MainView~iPad.xib work properly on both device types.

2条回答
  •  南方客
    南方客 (楼主)
    2021-02-04 21:01

    in the end i found the solution. it is really very very simple. The xib must be named ~ipad instead of ~iPad, and ~iphone instead of ~iPhone. The bad thing is the if you name them ~iPad, everything works in the simulator but it does not work on the real device.

提交回复
热议问题