I've tried this demo code and gotten it to work fine:
http://www.techotopia.com/index.php/An_iPhone_Graphics_Drawing_Tutorial_using_Quartz_2D
What I'd like to do, however, is to do the same custom drawing onto a panel or canvas of some sort sitting on the view (instead of drawing on the view itself). I'd also like to have other controls (like buttons) on the same view, and have the button clicks control the actual drawing.
Is there an easy way to do this?