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