问题
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