1
我创建pdf文件。我需要绘制旋转文字。在当前时间我有这个PDF文件IOS创建带有旋转文本的PDF文件
我的代码绘制文本
............
CGContextTranslateCTM(context, 0, frameRect.origin.y*2);
CGContextScaleCTM(context, 1.0, -1.0);
// Draw the frame.
CTFrameDraw(frame, context);
// Add these two lines to reverse the earlier transformation.
CGContextScaleCTM(context, 1.0, -1.0);
CGContextTranslateCTM(context, 0, (-1)*frameRect.origin.y*2);
我知道,我必须用CGContextRotateCTM(CGContextRef c, GFloat angle)
,但我不好理解转型,我不能做的我需要。
谢谢。它帮助我 – Pavel