0

I need to have a CCLabelTTF print spaces at the end of a string, but they won't. I can log the string and clearly see that the spaces at the end are preserved by highlighting the log.

I've tried appending a decimal ascii non-breaking space, but it shows up as a different character. The font I'm using is Monaco.

Chewie The Chorkie
  • 4,896
  • 9
  • 46
  • 90

1 Answers1

1

I figured it out. Instead of appending @" " I appended the unicode value U+00A0 like this:

labelPieceObj = [labelPieceObj stringByAppendingString:@"\u00A0"];

Chewie The Chorkie
  • 4,896
  • 9
  • 46
  • 90