title: How could I get the bound rect in which a substring will be drawn?
body: <p>I want to get the box in which a certain substring of a NSString has been rendered in a UILabel (or a UITextView, if easier), taking into account the rect in which the entire NSString is drawn, pus the line break mode, font, etc. In OSX, in the additions, there is a method that returns that rect</p>
  
  <pre><code>- (NSRect)boundingRectWithSize:(NSSize)size options:(NSStringDrawingOptions)options attributes:(NSDictionary *)attributes
  </code></pre>
  
  <p>Does iOS have something similar? I checked the documentation but I didn't find anything. Is out there something similar?</p>