https://github.com/acerbetti/ACEDrawingView
ACEDrawingView
Purpose
ACEDrawingView is a sample project showing exactly how to create a nice and smooth drawing application. In a few lines of code it supports drawing with different colors and line width. It also includes a full undo/redo stack and it can export the view as an UIImage.
How-To
- Import the files from the folder "ACEDrawingView" to your project
- From IB create a view and set the class to "ACEDrawingView"
- Programmatically use the initWithFrame: and add it as subview
Features
- Undo / Redo stack
- Multiple color lines
- Multiple width lines
- Multiple alpha values
- Create screenshot of your masterpiece
- Support for multiple tools (pen, line, rectangle, ellipse)
ARC Compatibility
This component can be used in projects using ARC or not
Change Log
01/15/2012 - v1.0
- Draw with multiple tools (pen, line, rectangle, ellipse)
01/13/2012 - v0.2
- Performance improvements (use an image to cache the drawing)
01/06/2013 - v0.1
- Initial release