Quote:
I use this code in my app several times and it works fine there.
Any ideas why the text is upside down and mirrored?
|
It has been my experience that text is always drawn upside down the way you are describing... other graphics objects are treated with 0,0 in the top left of the image, and thus are not rendered upsidedown.
insert:
Code:
CGAffineTransform textTransform = CGAffineTransformMake(1.0, 0.0, 0.0, -1.0, 0.0, 0.0);
CGContextSetTextMatrix(ctx, textTransform);
before:
Code:
CGContextShowTextAtPoint (ctx, 35, 250, goodVals, strlen(goodVals));
to set it back to what you 'want'.