WKInterfaceGroup 内的 WKInterfaceTable 后面有静态 BG 图像? [英] WKInterfaceTable inside WKInterfaceGroup with static BG image behind?

查看:23
本文介绍了WKInterfaceGroup 内的 WKInterfaceTable 后面有静态 BG 图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在滚动的 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆