KBDrawingView 1.0.4

KBDrawingView 1.0.4

测试已测试
Lang语言 Obj-CObjective C
许可证 MIT
发布上次发布2017年6月

Jayakrishnan M维护。



  • Jayakrishnan M

使用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];