如何在调试期间在iPad中保持相同的iPhone应用尺寸 [英] how to keep same iPhone app dimension in iPad during debugging

查看:83
本文介绍了如何在调试期间在iPad中保持相同的iPhone应用尺寸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只有一台iPad,但是我已经开发了iPhone 5应用程序,并想通过iPad对其进行测试.

I only have an iPad, but I have developed a iPhone 5 app, and wanna to test it though iPad.

问题是框架和所有对象都在ipad中扩展到全屏.

The issue is that frame and all objects are expanding to full screen in ipad.

我使用了IOS 5.1,iPad 1,Xcode 4.6.1,情节提要(iphone),将ipad设置为在目标"中使用与iphone相同的情节提要.

I used IOS 5.1, iPad 1, Xcode 4.6.1, storyboard(iphone), set ipad use the same storyboard as iphone in "target".

因此,请帮助我如何在ipad中运行相同的iphone尺寸应用.

So please help me how to run the same iphone size app in the ipad.

非常感谢!!!!

推荐答案

我相信您需要将应用程序目标从通用"更改为"iPhone". (检查示例图片)

I believe you need to change the app target from Universal to iPhone. (check sample image)

转到: [Project Targets] > Summary > iOS Application Target > Devices > iPhone

这样,iPad将以旧版iPhone应用程序打开您的应用程序.

This way the iPad will open your app as a legacy iPhone app.

(在一个简单的示例中,这对我有用,但是在确保仅针对iPhone且不使用任何仅iPad的UI元素进行构建时,可能还会涉及更多工作.)

(This worked for me in a simple example, but there may also be more work involved in ensuring you are building for iPhone only and not using any iPad-only UI elements.)

这篇关于如何在调试期间在iPad中保持相同的iPhone应用尺寸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆