This is a simple category to make your UIImageView drawable.
###How to Use
Copy UIImageView+Draw.h
and UIImageView+Draw.m
into your project.
Import in your Controller:
#import "UIImageView+Draw.h"
When we want to enable the drawing of writing the image:
[self.myImage startDrawing];
When we want to disable the drawing of writing the image:
[self.myImage stopDrawing];
Done.
[self.myImage setColor:[UIColor blueColor]];
[self.myImage setBrush:[(UISlider *)sender value]];
[self.myImage selectRubber];
[self.myImage resetImage];
[self.myImage save];
Clone this repository and play the Demo. Enjoy.