Como rodar o texto desenhado por Quartz no iPhone
Eu quero desenhar alguns textos usando o Quartz. Agora o aplicativo chamaalt text http://www.freeimagehosting.net/uploads/71a84c9b49.png, mas eu quero mostrar como "0123456789". Existe alguma maneira de mostrar sua orientação normal?
Aqui está o meu código:
//set image view
drawImage = [[UIImageView alloc] initWithImage:nil];
drawImage.frame = self.view.frame;
[self.view addSubview:drawImage];
UIGraphicsBeginImageContext(self.view.frame.size); // begin
// current context
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSelectFont(context, "Courier", 40, kCGEncodingMacRoman);
CGFloat white[] = {1.0, 1.0, 1.0, 1.0};
CGContextSetFillColor(context, white);
CGContextShowTextAtPoint(context, 0, 30, "0123456789", strlen("0123456789"));
// get image
drawImage.image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext(); // end