https://github.com/devdragonli/lflrandomcodeview
LFLRandomCodeView
https://github.com/devdragonli/lflrandomcodeview
Last synced: 3 days ago
JSON representation
LFLRandomCodeView
- Host: GitHub
- URL: https://github.com/devdragonli/lflrandomcodeview
- Owner: DevDragonLi
- Created: 2016-11-10T03:53:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-06T05:31:03.000Z (about 8 years ago)
- Last Synced: 2025-02-23T14:47:15.202Z (over 1 year ago)
- Language: Objective-C
- Homepage:
- Size: 224 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [merge repo ](https://github.com/DevDragonLi/iOSDevCode)
# LFLRandomCodeView 绘制图片随机验证码
## 1.效果图

## 2.代码部分说明,只需要给个位置即可
```
1. 一行创建
_randomCodeView = [[LFLRandomCodeView alloc] initWithFrame:CGRectMake(begainX, 100, 100, 40)];
2. 用户点击确认是否输入正确 block 回调结果,处理即可
- (void)makeSureHandele{
__weak typeof(self) ws=self;
[_randomCodeView isInputCorrectWithString:_textField.text :^(NSString *statusSTring) {
UIAlertView * alertView= [[UIAlertView alloc]initWithTitle:nil message:statusSTring delegate:ws cancelButtonTitle:@"取消" otherButtonTitles:@"确定", nil];
[alertView show];
}];
}
```
Requirements
==============
This library requires `iOS 6.0+` and `Xcode 6.0+`.
# 3. 有任何问题,请及时 issues me