在Swift 4中支持iPad尺寸 [英] Support for ipad size in Swift 4
问题描述
我已经使用自动布局"成功完成了iPhone开发.
I have successfully completed iPhone development using Auto Layout.
由于采用了自动布局,因此UI可以在所有iPhone上正常显示.
Thanks to Auto Layout, UI is displayed normally on all iPhones.
但是,如果我在iPad上运行它,则UI不会中断,但屏幕会很小.
However, if I run it on the iPad, the UI will not break, but the screen will be small.
我不知道如何在情节提要或构建设置中支持iPad大小.
I have no idea what to do to support iPad size in storyboard or build settings.
如果我希望我的应用响应iPad的尺寸,我应该特别使用哪种方法?
If I want my app to respond to iPad size, what method should I use specifically?
我正在使用Xcode 10和Swift 4.
I am using Xcode 10 and Swift 4.
推荐答案
在Xcode中选择您的项目,然后使用常规"选项卡.在身份和签名"部分下.
Select your project in Xcode, then use the General tab. It's under the sections on Identity and Signing.
这篇关于在Swift 4中支持iPad尺寸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!