drawing text using CGContextShowTextAtPoint but text shown is inverted,

后端 未结 2 1853
栀梦
栀梦 2020-12-16 23:08
  - (void)drawRect:(CGRect)rect {
    CGContextRef  context = UIGraphicsGetCurrentContext();


    CGContextSelectFont(context, \"Arial\", 24, kCGEncodingMacRoman);
         


        
2条回答
  •  一个人的身影
    2020-12-16 23:53

    You can use this code :

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

提交回复
热议问题