Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent a WKInterfaceController from scrolling?

I have a WKInterfaceController, whose I don't want it to be scrollable, but it seems decided to scroll even when my master group's height and width are set to 1 in Relative to container.

I were thinking that It isn't possible until I see Fitstar and Skype apps.

like image 997
Hugo Alonso Avatar asked Jan 09 '23 04:01

Hugo Alonso


2 Answers

There is a way - inside Storyboard:

Set the tag: "Fixed to screen edges"

After that, scrolling is disabled for the WKInterfaceController.

enter image description here

like image 116
iKK Avatar answered Jan 10 '23 18:01

iKK


Looking and testing around found a solution:

Make sure that in Interface Controller's Attribute Inspector you have the insets set to default

UPDATE:

You need to fit your view, in the <=100% of the view, there's no other workaround, if you have more than that, the WKInterfaceController will scroll automatically.

like image 34
Hugo Alonso Avatar answered Jan 10 '23 17:01

Hugo Alonso