2

I have set my constraints in Xcode interface builder as following:

enter image description here

But the layout is not the same as the one I have on my interface builder (see below). I cannot see/find any property on the watch UI elements and views that allows me to set the layout constraints.

enter image description here

As you can see the grey button on the row is misaligned on the 42 mm watch. It works well on the 38mm watch.

Anyone knows how to fix this?

mm24
  • 9,280
  • 12
  • 75
  • 170

1 Answers1

3

There are no constraints on the Apple Watch. The interface can be layed out by groups with different behaviours.

So put your button in a group with horizontal layout and the desired width. Then put the button in that group and set the button's horizontal position to right.

zisoft
  • 22,770
  • 10
  • 62
  • 73
  • It is a table with custom rows. So cannot really be tweaked with a group. – mm24 May 22 '15 at 14:33
  • Where is the problem to put two groups on a custom table row? – zisoft May 22 '15 at 14:35
  • It changes the appearances slightly as the group border takes off some space. Why are groups different that labels and buttons? I should still be able to put a button on the rightmost part of the row or is this not possible in WatchKit? – mm24 May 22 '15 at 14:42
  • Did you try to set the Insets to `Custom` and play around with the inset values? – zisoft May 22 '15 at 14:46