在Xcode 11中为旧的源代码启用自动布局

问题描述 投票:0回答:1

该项目是很久以前使用“ autoresizingmask”,“顶部和底部布局指南”编写的。

现在,我希望更新为自动版式。我找不到选项“在Interface Builder中使用AutoLayout。”

enter image description here

有帮助吗?

ios xcode autolayout interface-builder autoresizingmask
1个回答
0
投票

很遗憾,Use Auto Layout选项不再对Xcode 11可见。但是您可以在Xcode 10中打开相同的项目,然后可以在其中启用它。

enter image description here

我的Xcode版本是10.2.1。

enter image description here

如果您没有旧版本,可以从这里下载旧版本:Xcode 10.2.1

只需使用您的Apple ID登录并开始下载。

我希望这会对您有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.