Apple watch: how to scroll only the contents of a table, and not the entire user interface of a watch?

To learn how to program the clock, I created a small test application consisting only of an image and a table:

enter image description here

The application is run by iOS and clock simulators. The contents of the image and table are correctly set by the application.

When the table is too long to fully fit on the viewing screen, I expected that clicking on the table would allow it to scroll through the contents of the table. However, the full content of the watch scrolls, including the image (note that the green dial scrolls halfway out of sight):
enter image description here

What do I need to do so that the image is fixed on the screen, but do I allow the contents of the table to scroll vertically?

+4
2

API , , watchOS 2, watchOS 3.

( ), ( ).

, , .

...

WKCrownSequencer WKCrownDelegate , .

, , , .

...

, Apple , , , .

  • . , , , .

  • , . , , .

  • , , , , () .

  • , - .

+2

watchOS 3 :

let crownSequencer = WKExtension.shared().rootInterfaceController!.crownSequencer
crownSequencer.delegate = self
crownSequencer.focus()

, :

func crownDidRotate(_ crownSequencer: WKCrownSequencer?, rotationalDelta: Double)
0

Source: https://habr.com/ru/post/1652322/


All Articles