Create your UIImageView subclass, add some methods which will allow to add point's on user touch (will draw them in drawRect: and also place into C-array) and one method to "commit" line. Commit line will simply go through C-array and draw them in context with CG methods.