Non-breaking space in NSString
A recent project I worked on had a focus on typography, so kerning, line spacing and spacing were all important. One of the necessary steps to achieve this was to use non-breaking spaces in strings.
Turns out, it’s pretty easy, just use the Unicode representation \u00a0, which looks like this in Objective-C code:
@"This is a non-breaking\u00a0space"
Kerning, line spacing, hyphenation and other typographic features are also really interesting to implement, but they demand a longer post and illustrations, so I’ll write about them later.