title: Drawing vertical text on iOS
body: <p>I'd like to draw an <code>NSAttributedString</code> (or <code>NSString</code>) vertically on iOS. By "vertically" I mean:</p>
  
  <p><img src="https://i.stack.imgur.com/c84V2.png" alt="Vertical text example"></p>
  
  <p><a href="https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSAttributedString_AppKitAdditions/Reference/Reference.html" rel="noreferrer">Apple's documentation</a> says a standard attribute on an <code>NSAttributedString</code> is <code>NSVerticalGlyphFormAttributeName</code>, but unfortunately, says:</p>
  
  <blockquote>
    <p>"In iOS, horizontal text is always used and specifying a different value is undefined."</p>
  </blockquote>
  
  <p><a href="https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSAttributedString_AppKitAdditions/Reference/Reference.html" rel="noreferrer">The same document</a> also mentions <code>NSTextLayoutSectionsAttribute</code>, which seems to support <code>NSTextLayoutOrientation</code>, which allows <code>NSTextLayoutOrientationHorizontal</code> or <code>NSTextLayoutOrientationVertical</code>.</p>
  
  <p>None of those 4 terms get <strong>any</strong> hits on SO at the moment. <em>Just that lonely whistling sound</em>.</p>
  
  <p>However, I don't have any idea how to set this up, whether it works with iOS, or if can be used for vertical string rendering in the style of <code>[myAttributedString drawAtPoint: whereItOughtaGo]</code>.</p>
  
  <p>Thanks.</p>