CTFrameGetVisibleStringRange equivalent for iOS programming?
问题 I need a method like CTFrameGetVisibleStringRange that can give me the text that will be rendered in a given size supplied with a line break mode (i.e. word wrap). For example I have a long line of text.. and I have a given rectangle to draw the text wrapped in it, but wherever the text gets trunecated, I continue rendering it in another area where it left off. So I need a method like: NSString * text = "The lazy fox jumped over the creek"; [text drawAtPoint:CGPointMake(0, 0) forWidth:20