博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[翻译] PJR Signature View
阅读量:7206 次
发布时间:2019-06-29

本文共 1533 字,大约阅读时间需要 5 分钟。

PJR Signature View

It is a UIView subclass by which you can draw signature and you can also get an image of that signature in your applications. 

这是一个UIView的子类,你可以在这个view上面绘制内容,并将绘制的内容转换成一张图片。

Why it is useful to you and what is new in it ?

为什么对你有用,他有什么新意?

It is a well structured components , The demo contains Model View Controller design pattern,It is using beizer path for drawing signature which is very fast and you can also get image of your signature.

这是一个非常好的模块化组件,这个demo包好了MVC的设计模式,这个view使用的是贝塞尔曲线来绘制签名,速度非常快,你可以快速的获取到绘制出的图片。

What is new ? 有什么不一样的地方?

It is well structured. It follows MVC. It is well designed which contains signature label , so no need to use extra UI for "Sign here" label. You can directly use this componet to any of your applications. It is created in dynamic way so you can set it according to your view size.

它是模块化设计,遵循MVC设计模式。里面包含了一个signature label,你不需要额外的创建Sign here的标签。你可以直接在源码中修改。

It will definitely make your app much interesting with its animations.

这会让你的app变得很酷。

 

How to use 

如何使用

Import this files 引入这些文件到你的项目当中

PJRSignatureView.h , PJRSignatureView.m

  • Add it into your view controller like: 这么初始化

signatureView= [[PJRSignatureView alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, 300)]; [self.view addSubview:signatureView];

  • Clear drwaing by: 然后这么清除

[signatureView clearSignature];

  • Get signature Image by 你可以这么获取到图片

[signatureView getSignatureImage];

  • you can change signature Color By 你可以这么修改颜色

#define INITIAL_COLOR [UIColor redColor]; #define FINAL_COLOR [UIColor redColor];

转载地址:http://lcvum.baihongyu.com/

你可能感兴趣的文章
ZJOI2008皇帝的烦恼
查看>>
新手windows安装nginx
查看>>
浏览器兼容问题踩坑收集
查看>>
Python 实用技巧
查看>>
object c中@property 的使用
查看>>
Sping 核心IOC容器
查看>>
poj 2524
查看>>
MapReduce
查看>>
论文阅读笔记五十六:(ExtremeNet)Bottom-up Object Detection by Grouping Extreme and Center Points(CVPR2019)...
查看>>
回收期计算
查看>>
response响应
查看>>
10 个十分难得的 javascript 开发经验
查看>>
Common Subsequence
查看>>
【CSS3】标签使用说明
查看>>
n皇后问题—回溯法 C++实现
查看>>
on delete cascade
查看>>
Connected Graph
查看>>
openfile iscisi 配置
查看>>
SCAU 9504 面试
查看>>
基本数据类型、输入输出、运算符
查看>>