简体   繁体   English

如何通过Xcode中的iPhone应用程序在iPad上正确格式化应用程序?

[英]How to format app properly on an ipad from an iphone app in xcode?

I've written an app in Xcode and I set it for iPhone, but now I want to make the app available for iPad. 我已经用Xcode编写了一个应用程序并将其设置为iPhone,但现在我想将该应用程序提供给iPad。 I don't want to go through the trouble of making it universal, is there a way I can run this iPhone app on my iPad correctly formatted? 我不想麻烦使其通用,是否可以通过正确的格式在iPad上运行此iPhone应用程序?

You can just set the target Device to iPad and run it. 您可以将目标设备设置为iPad并运行它。 See below. 见下文。 Your UI may or may not look good depending on if you properly used either AutoLayout or Springs and Struts. 您的UI外观可能不错,也可能不好,这取决于您是否正确使用了AutoLayout或Springs和Struts。

The iPad is a very different canvas for a UI than the iPhone and there is no definition of what "correctly formatted" really means when going from one to the other. iPad是用于UI的画布,与iPhone完全不同,并且没有定义“正确格式化”从一个到另一个的真正含义。 It's a subjective matter and a computer is not going to decide if it looks good for you. 这是一个主观问题,计算机不会决定它是否对您有利。 As such, you may not get what you are looking for. 因此,您可能无法获得所需的内容。

Xcode图片

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM