I want to know what frame will a string be at after it is drawn in rect.
NSString *string = @"This is a sample text."; UILabel *label = [[UILabel alloc] init]; label.text = string; // do some setups here
drawInRect: method, I want to retrieve the frame of the a specific word. Let's say I want to know the rect for
This is a sample text. string.
Here's a sample
UILabel and I want to know the frame of the text inside the red box. Thanks!