I'm able to draw a NSString
in a CustomView
using the drawAtPoint
method:
NSString *text = @"text";
NSSize textSize = [text sizeWithAttributes:xlabelSet]; //receive the text size
NSPoint p = NSMakePoint(length - textSize.width/2 , wcszero_y - 20); //define text position considering the text center
[text drawAtPoint:p withAttributes:xlabelSet]; //draw text at position
How do I rotate the text by 90 degree at the same position? What I found so far wasn't really rotating the text at the defined position.