Can you clarify what you mean by mirroring? Here is some code for drawing black text. It does not have to be "mirror".
CGRect viewBounds = self.bounds; CGContextTranslateCTM(ctx, 0, viewBounds.size.height); CGContextScaleCTM(ctx, 1, -1); CGContextSetRGBFillColor(ctx, 0.0, 1.0, 0.0, 1.0); CGContextSetLineWidth(ctx, 2.0); CGContextSelectFont(ctx, "Helvetica", 10.0, kCGEncodingMacRoman); CGContextSetCharacterSpacing(ctx, 1.7); CGContextSetTextDrawingMode(ctx, kCGTextFill); CGContextShowTextAtPoint(ctx, 100.0, 100.0, "SOME TEXT", 9);
samfu_1
source share