WKInterfaceController背景图片位置
WKInterfaceController background image location
我正在 WKInterfaceController
中制作一个 WatchKit Table。我希望 ViewController 具有背景,如下所示:
我将背景分配给 InterfaceController
本身(而不是 Table):
这行得通,除了图像实际上位于 Table
的中心,而不是 WKInterfaceController
,所以如果我有很多行,我会得到这个结果(从 Storyboard,绘制的如果你在手表上滚动到那些行,你会看到盒子):
背景图像位于 Table
的中心,只有当用户滚动到第 4-5 行(绿色框)时才可见。
是否可以让图像在 ViewController
中居中,并让行在 Storyboard 或代码中滚动 覆盖 图像?
根据 Apple 目前还不可能。
我正在 WKInterfaceController
中制作一个 WatchKit Table。我希望 ViewController 具有背景,如下所示:
我将背景分配给 InterfaceController
本身(而不是 Table):
这行得通,除了图像实际上位于 Table
的中心,而不是 WKInterfaceController
,所以如果我有很多行,我会得到这个结果(从 Storyboard,绘制的如果你在手表上滚动到那些行,你会看到盒子):
背景图像位于 Table
的中心,只有当用户滚动到第 4-5 行(绿色框)时才可见。
是否可以让图像在 ViewController
中居中,并让行在 Storyboard 或代码中滚动 覆盖 图像?
根据 Apple 目前还不可能。