Guten Tag,
ich habe mir Code geschrieben, der mich ein "y" hinzeichnen soll. Leider wird immer statt den "y" ein "^" gezeichnet. Was mache ich falsch? Hier mein Code:
ich habe mir Code geschrieben, der mich ein "y" hinzeichnen soll. Leider wird immer statt den "y" ein "^" gezeichnet. Was mache ich falsch? Hier mein Code:
Quellcode
- -(void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx {
- CGContextSetRGBStrokeColor(ctx,0.0, 0.0, 0.0, 1.0);
- CGContextSetRGBFillColor(ctx, 0.0, 0.0, 0.0, 1.0);
- CGContextSelectFont(ctx, "ArialMT", 17, kCGEncodingMacRoman);
- CGContextShowTextAtPoint(ctx, rectWidth/2-25, 0, "y",1);
- CGContextStrokePath(ctx);
- }