WKInterfaceTable inside WKInterfaceGroup with static BG image behind?

半腔热情 提交于 2019-12-11 01:29:56

问题


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.

Possible?


回答1:


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.



来源:https://stackoverflow.com/questions/29608457/wkinterfacetable-inside-wkinterfacegroup-with-static-bg-image-behind

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!