How to rotate text drawn by Quartz on iPhone

前端 未结 4 768
情歌与酒
情歌与酒 2020-12-30 18:37

I want to draw some texts using Quartz. Now the app draws , but I want it to show as \"0123456789\". Is there any way to show its normal orientation?

Here is my cod

4条回答
  •  情书的邮戳
    2020-12-30 19:35

    Well this solved my problem

    CGContextSetTextMatrix(context, CGAffineTransformMake(1.0,0.0, 0.0, -1.0, 0.0, 0.0));
    

提交回复
热议问题