Finally, here is the most awaited code of the current request queues.
Well. I have implemented a very basic example of how to implement Redo- Undo using UIBezierPath.
MyLineDrawingView is the drawing class (UIView subclass) where UIBezierPath are drawn.
DrawingController is the UIViewController subclass on which I have added redo-undo buttons along with the MyLineDrawingView.
UI looks very crude and ugly .. I apologize but I wanted to get the feature done to get the developers an idea.
Well I just want to stick some icons here so that this ugly posting may look little cute !
Download the code here
Well. I have implemented a very basic example of how to implement Redo- Undo using UIBezierPath.
MyLineDrawingView is the drawing class (UIView subclass) where UIBezierPath are drawn.
DrawingController is the UIViewController subclass on which I have added redo-undo buttons along with the MyLineDrawingView.
UI looks very crude and ugly .. I apologize but I wanted to get the feature done to get the developers an idea.
Well I just want to stick some icons here so that this ugly posting may look little cute !
Download the code here
Thats really Creat! with out using - (void)drawRect:(CGRect)rect
ReplyDeletecan we implement
Hi,
DeleteCan a UIBezierPath be drawn on the UIView without needing to put the code in the drawRect routine?
Thanks.
Jason
Thanks for the sharing. It is so cool. Also, how can I save a png or jpg file after I finish drawing?
ReplyDeletethanx friend..this post is very Easy to understand and also helps to develop paint application
ReplyDeletebut i am Finding some methode through wich we can make movie that we had drawn on iPad
This comment has been removed by the author.
ReplyDeleteA swift version would be very helpful. I also need to integrate with an eraser function. Any idea how I should proceed? Many thanks!
ReplyDelete