2012-02-13から1日間の記事一覧

ダブルバッファリング

UIViewのサブクラスを定義してdrawRect:で以下のコードを実行。NSTimerで定期的に再描画。 - (void)drawRect:(CGRect)rect { static int y = 0; CGContextRef c = UIGraphicsGetCurrentContext(); CGContextSetRGBStrokeColor(c, 0, 1, 0, 1); CGContextSetL…