Below are some open source projects I found on Github.
In terms of libraries or frameworks, here is one of CocoaControls (which, by the way, has a whole collection of Cocoa stuff for OSX and iPhone)
You can include GLPaint code that Apple provides or uses some code in QuartzDemo Demo application. You can create a simple application using touch methods and UIBezierPaths in a view.
source share