WKInterfaceController背景图片位置

时间:2015-04-22 21:58:54

标签: xcode watchkit

我正在WKInterfaceController制作一个WatchKit表。我希望 ViewController 具有背景,如下所示: enter image description here

我将背景分配给InterfaceController本身(而不是表格):

enter image description here

这是有效的,除了图像实际上在Table而不是WKInterfaceController的中心,所以如果我有很多行我得到这个结果(从故事板,绘制的框是如果你将手表滚动到那些行,你会看到什么):

enter image description here

背景图片位于Table的中心,仅当用户滚动到第4-5行(绿色框)时才可见。

是否可以将图片保持在ViewController的中心位置,让这些行在故事板或代码中滚动覆盖图像?

0 个答案:

没有答案
相关问题