title: Adding hyphenation to Core Text?
body: <p>I am trying to add hyphenation to a string to draw with Core Text. So far I've found <a href="http://blog.tupil.com/adding-hyphenation-to-nsstring/" rel="nofollow">this category extension on NSString</a> that attempts to add hyphens, but it is outdated, and doesn't work when the string has apostrophes, as well as many other issues. And then this <a href="http://frankzblog.appspot.com/?p=7001" rel="nofollow">other guy</a> uses that code to do this, but this is dependent on the first source code, which is no good. </p>
  
  <p>But now in iOS 5 there is apparently a built in method for hyphenation, though tutorials and examples are extremely scarce: <code>CFStringGetHyphenationLocationBeforeIndex</code>. Can anyone more experienced with Core Text and CF cook up a quick example of how I could potentially use this function?</p>