title: How to get NSAttributedString for a giving size?
body: <p>I'm currently writing an iOS 6 only app that will work in a similar way to iBooks. I have a large text inside a NSAttributedString and want to split it into pages. </p>
  
  <p>Each page have a UITextView that will be responsible for presenting the text. I'm using UITextView instead of CoreText because I want to have text selection so the user can highlight the text.</p>
  
  <p><strong>Here is my problem:</strong> I want to be able to split the "full" NSAttributedString into pages that will be the size of my UITextView.</p>
  
  <p>Unfortunately on iOS 6, UITextView draws the NSAttributedString in a different way than CoreText. So, using CTFrameGetVisibleStringRange is not an option.</p>
  
  <p>Does anyone know a way to get an NSAttributedString for a specific size that is not brute force?</p>
  
  <p>Thanks,</p>
  
  <p>Abras</p>