WKInterfaceGroup内的WKInterfaceTable后面有静态BG图像? [英] WKInterfaceTable inside WKInterfaceGroup with static BG image behind?
问题描述
我正在尝试在滚动的WKInterfaceTable
后面显示静态背景图像,该图像可能包含一个或多个行.我正在尝试通过将表格放在WKInterfaceGroup
内并设置该群组的背景图片来做到这一点.问题是,如果我将组的高度设置为适合内容的大小",则表格将不会滚动;如果将组的高度设置为相对于容器",则如果存在只有一行.
I’m trying to display a static background image behind a scrolling WKInterfaceTable
, that could contain one or more rows. I’m trying to do this by placing the table inside a WKInterfaceGroup
, and setting that group’s background image. The issue is that if I set the group’s height to "Size to fit content", the table will not scroll, and if I set the group’s height to "Relative to container", the image does not take up the full display if there is only one row.
有解决这个问题的聪明方法吗?我需要的是图像成为显示的高度,而不管行数是否足以滚动表格.
Is there a clever way around this problem? What I need is for the image to be the height of the display regardless of whether the number of rows is enough to scroll the table or not.
可能吗?
推荐答案
虽然目前无法找到参考,但开发人员论坛中的一位Apple员工表示,在滚动表后方有静态背景图片是当前版本的WatchKit无法实现.
While I can't find the reference at the moment, an Apple employee in the developer forums has stated that having a static background image behind a scrolling table isn't possible with the current version of WatchKit.
这篇关于WKInterfaceGroup内的WKInterfaceTable后面有静态BG图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!