iOS - TouchLock 手势锁
1、绘制手势锁 具体实现代码见 GitHub 源码 QExtension QTouchLockView.h @interface QTouchLockView : UIView /// 提示信息框 @property (nonatomic, strong) UILabel *alertLabel; /** * 创建手势锁视图控件,获取滑动手势结果 * * @param frame 手势锁视图控件的位置尺寸 * @param result 滑动手势结果,YES 成功,NO 失败 * * @return 手势锁视图控件 */ + (instancetype)q_touchLockViewWithFrame:(CGRect)frame pathResult:(void (^)(BOOL isSucceed, NSString *result))result; @end QTouchLockView.m #import "NSString+Hash.h" @interface QTouchLockView () /// 存放选中的按钮 @property (nonatomic, strong)...