使用tutsplus教程在iOS上实现平滑的免费手绘的一个简单绘图视图。
将KBDrawingView.h和KBDrawingView.m文件拖放到您的项目中
self.drawingView = [KBDrawingView alloc] init];
self.drawingView.delegate = self;
self.drawingView.lineColor = [UIColor grayColor];
self.drawingView.lineWidth = @4;
self.drawingView.minimumDrawLength = @10;
UIImage *rendredImage = [self.drawingView renderImage];