According to Quartz 2D Programming Guide - Text :
iOS , , 16-1. y . 16-2 , drawRect: iOS. MyDrawText 16-1 .
MonoTouch:
public void DrawText(string text, float x, float y)
{
y = Bounds.Height-y;
CGContext c = UIGraphics.GetCurrentContext();
c.SaveState();
c.TranslateCTM(0, Bounds.Height);
c.ScaleCTM(1,-1);
DrawMarker(x,y);
c.SelectFont("Helvetica-Bold", 12.0f, CGTextEncoding.MacRoman);
c.SetTextDrawingMode(CGTextDrawingMode.Fill);
c.SetFillColor(1,1,1,1);
c.ShowTextAtPoint( x, y, text );
c.RestoreState();
}
:
public void DrawMarker(float x, float y)
{
float SZ = 20;
CGContext c = UIGraphics.GetCurrentContext();
c.BeginPath();
c.AddLines( new [] { new PointF(x-SZ,y), new PointF(x+SZ,y) });
c.AddLines( new [] { new PointF(x,y-SZ), new PointF(x,y+SZ) });
c.StrokePath();
}