如何使用 Xcode's Vary for Apple Watch button 在 Watch Interface 故事板中自定义特定手表尺寸的布局

How to customize the layout for a specific watch size using Xcode's Vary for Apple Watch button in the Watch Interface storyboard

我正在尝试设置特定于 Apple Watch 38mm 的布局,但无法正常工作。

我尝试单击 "Vary for Apple Watch 38mm" 按钮,更改属性检查器中的约束(视图大小高度),然后单击 "Done Varying"。然后当我查看其他设备尺寸时,它们都有我认为我只对 38 毫米设备所做的更改。谁能提供一些指导?

我遇到了同样的问题,这让我想到了你的 post。我不知道 "Vary for Apple Watch 38mm" 是如何工作的,但我找到了另一种方法。

在属性检查器中,左侧全是“+”号。如果您单击其中一个,您将看到一个包含不同手表尺寸的下拉列表。通过这种方式,您可以为手表尺寸自定义给定属性。希望这有帮助。