how to keep same iPhone app dimension in iPad during debugging

二次信任 提交于 2020-01-03 01:51:50

问题


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

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

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

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

Thanks a lot!!!!!!


回答1:


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

Go to: [Project Targets] > Summary > iOS Application Target > Devices > iPhone

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

(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.)



来源:https://stackoverflow.com/questions/16010384/how-to-keep-same-iphone-app-dimension-in-ipad-during-debugging

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