Running a universal app as a scaled iPhone app?

后端 未结 2 894
梦如初夏
梦如初夏 2021-01-25 14:04

I\'ve seen tons of questions and answers regarding merging an iPhone and an iPad app into an universal app, but that isn\'t what I want to do. What I am going to do is use in ap

2条回答
  •  囚心锁ツ
    2021-01-25 14:19

    This isn't possible, unfortunately. The iPad will know that the app is iPad ready and will tell draw the screen at full size. Even if you showed iPhone xib file on the iPad, they would still be scaled to fit the full screen using the UIViewAutoresizingMask params you've set for them.

    One thought would be to force the size of your UIWindow to be iPhone sized (remember to account for retina) and centered, but I'm not 100% sure how/if this would work. You may have to change each UIView frame. I'm not sure.

提交回复
热议问题