Is there a method to draw text in the middle of a rectangle. I can find various alignments, but nothing I have tried can vertically centre the text in a rect.
Is there a simple method to do this, or is there some way to centre a rectangle and then draw in that?
I'm drawing direct to the CGContext, trying to use NSString::drawWithRect or something similar, as I dont really want to have to add a Label just to render some basic text.