drawRect を使用して、新しい行 (改行 \n) で文字列をレンダリングしようとしています。
以下のコードは、\n 文字を使用しているにもかかわらず、my 文字列を改行なしの 1 行としてレンダリングします。最後から 2 番目の行を参照してください。
UIFont *font = [UIFont fontWithName:@"HelveticaNeue-CondensedBlack" size:fontSize];
CGPoint point = CGPointMake(0,0);
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetRGBFillColor(context, 1.0, 1.0, 1.0, 1.0);
CGContextSetRGBStrokeColor(context, 0.0, 0.0, 0.0, 1.0);
CGContextSetLineWidth(context, 4.0);
CGContextSetTextDrawingMode(context, kCGTextFillStroke);
CGContextSaveGState(context);
[@"test \n test" drawAtPoint:point withFont:font];
CGContextRestoreGState(context);