1

In InterfaceBuilder there's a property for Text Alignment, although it can't be found between the WKInterfaceLabel class defined properties.

When I set it to any of the alignments it works, except for the Justified one, why is that the case?

watch screenshot InterfaceBuilder screenshot

Is there anything I'm not aware of regarding this weird behaviour?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Kex
  • 776
  • 10
  • 22
  • I believe that justify doesn't exist on WatchKit because the screen is too small. The UI configuration is available in the storyboard but not in code because most of the UI is stored on the watch itself. – Schemetrical May 25 '15 at 04:09
  • Justified text in a `WKInterfaceLabel` hasn't worked for me either. Schemetrical's guess is a good one. Otherwise, it seems like a bug. – Mike Swanson May 25 '15 at 17:20

1 Answers1

0

Actually if you try on UILabel, the justify don't work either. So it is really not a watchapp related issue. You can try using NSAttributedString instead.

GeneCode
  • 7,545
  • 8
  • 50
  • 85
  • Create new project, go to storyboard. Add a UILabel on it with long text. Select Justify alignment in the settings-> text remains as Left aligned. – GeneCode Aug 31 '16 at 04:21
  • https://stackoverflow.com/questions/29742863/how-to-set-alignment-for-wkinterface-label-using-setattributedtext – Nathaniel Oct 30 '17 at 04:01