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
- (NSRect)boundingRectWithSize:(NSSize)size options:(NSStringDrawingOptions)options attributes:(NSDictionary *)attributes
Does iOS have something similar? I checked the documentation but I didn’t find anything. Is out there something similar?
I think, this may help you
and this is what you looking for