Drawing and Printing Guide for iOS
- Graphics and Drawing in iOS
-- Default Coordinate Systems and Drawing in iOS
の
Drawing to the Screen の項にそれらしい記述があります。
===== 引用ここから =====
If you want to use Core Graphics functions to draw in a UIKit view,
you should use the ULO coordinate system of UIKit for drawing
operations. Alternatively, you can apply a flip transform to the CTM
and then draw an object in the UIKit view using Core Graphics native
LLO coordinate system.
===== 引用ここまで =====
※ULO; Upper-Left-Origin, LLO: Lower-Left-Origin
あと本題とは関係のない老婆心ですが、
> CGContextAddLineToPoint(context, 10, 10);
は
> CGContextAddLineToPoint(context, 10.0, 10.0);
にしておいたほうがよいかもしれません…(^^;
2012/2/16 m_yukio <yukio.m...@gmail.com>:
--
------
(み)