不能使用手表屏幕的全宽吗?始终获得 1 点边框

Isn't it possible to use the full width of the watch's screen? Always get a 1 point border

是否可以使用整个屏幕宽度,例如对于组还是 ImageView?

当我设置“相对于容器”的宽度时,我总是在两侧看到一点边框。

我不明白为什么,因为时钟仍然有一个黑框。 因此,从已经足够小的屏幕中添加另一个窃取 canvas 的虚拟边框似乎没有任何意义。

有什么方法可以解决这个问题,还是我们必须使用它的方式?

也许将边距 and/or 的内边距设置为 0 会解决这个问题。

虽然 IOS Dev Library 指出:

Use the full width of the screen. Because the bezel on Apple Watch adds visual padding around your content, you do not need to include margins between the screen edge and your content. (Note that this padding is not present in iOS Simulator.)

间距和插图与此无关,它只影响组内的对象,而且您似乎只有 1 个蓝色背景组。

看这个例子:父组中有 2 个组。

将间距更改为 5 点,将组内分隔 5 点。 (它不会改变父组的大小)。 将 top、left 和 right 更改为 10 点只会改变内部组的大小和位置,父宽度是相同的。

如果您的蓝色背景组的宽度为 "relative to container",我认为您使用的是最大宽度。我目前在我的 applewatch 应用程序中有相同的间隙边框。