I am currently drawing text on string, using drawInRect, restricted to a size using CGRectSize. It is also centred.
[text drawInRect:CGRectMake(0,0,nWidth,nHeight) withFont:font lineBreakMode:UILineBreakModeWordWrap alignment:UITextAlignmentCenter];
What I need to find out is the size and offset of the actual drawn text.
Because it is centred, there is a very good chance that there is an X offset before text is drawn.
I’ve seen the command boundingRectWithSize but I think it may not be supported on IOS?
Get the size of the text,
(See documentation)
Then, since it is centered, the bounds will be