![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS绘图
iChenfy
这个作者很懒,什么都没留下…
展开
-
iOS 原生方式实现二维码的生成与解析
文章目录一、二维码的生成二、二维码的解析三、截图方法 一、二维码的生成 /** * 根据字符串生成二维码 CIImage 对象 * * @param urlString 需要生成二维码的字符串 * * @return 生成的二维码 */ + (CIImage *)creatQRcodeWithUrlstring:(NSString *)urlString{ // 1.实例化二维码滤镜 CIFilter *filter = [CIFilter filterWithName:原创 2020-07-07 17:40:27 · 546 阅读 · 0 评论 -
iOS 画笔轨迹优化
iOS 画笔轨迹优化 一 、常规画法 - (void)draw_draw:(CGPoint *)points context:(CGContextRef)context count:(NSInteger)count { CGContextFillPath(context); CGContextAddLines(context, points, count);//添加线 CGContextDrawPath(context, kCGPathStroke); //根据坐标绘制路径 } 二原创 2020-07-07 17:26:39 · 556 阅读 · 0 评论