Quartz コンテキストを使用してテキストを表示しようとしましたが、何を試してもテキストを表示することができませんでした (ただし、他のすべての種類の Quartz オブジェクトを表示できます)。誰かが私が間違っているかもしれないことを知っていますか?
例:
-(void)drawRect:(CGRect)rect
{
// Drawing code
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSelectFont(context, "Arial", 24, kCGEncodingFontSpecific);
CGContextSetTextPosition(context,80,80);
CGContextShowText(context, "hello", 6);
//not even this works
CGContextShowTextAtPoint(context, 1,1, "hello", 6);
}