Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rockchanel/swqrcode_objc
SWQRCode objecive-c 版本,高仿微信扫一扫功能
https://github.com/rockchanel/swqrcode_objc
objective-c
Last synced: 5 days ago
JSON representation
SWQRCode objecive-c 版本,高仿微信扫一扫功能
- Host: GitHub
- URL: https://github.com/rockchanel/swqrcode_objc
- Owner: RockChanel
- Created: 2018-04-09T16:20:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-26T06:34:14.000Z (over 6 years ago)
- Last Synced: 2023-10-20T09:32:35.976Z (about 1 year ago)
- Topics: objective-c
- Language: Objective-C
- Homepage:
- Size: 54.7 KB
- Stars: 66
- Watchers: 2
- Forks: 10
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SWQRCode_Objc
![image](https://github.com/RockChanel/SWGIF/blob/master/SWQRCode/SWQRCode.gif)
简书地址:[iOS 高仿微信扫一扫](https://www.jianshu.com/p/1fc34089adf5)
Swift版本地址:[SWQRCode swift 版本](https://github.com/RockChanel/SWQRCode_Swift)
`SWQRCode_Objc` 为 `SWQRCode` objecive-c 版本,高仿微信扫一扫功能,包括`二维码/条码识别、相册图片二维码/条码识别、手电筒功能`等,请使用真机进行测试。
`SWQRCode_Objc` 舍弃了 `NSTimer` 而采用 `CABasicAnimation` 实现扫一扫动画效果。
若需在项目中使用,只需将 `SWQRCode` 文件夹拖入项目中,并在 `info.plist` 中添加 `Privacy - Photo Library Usage Description` 以及 `Privacy - Camera Usage Description` 配置,声明相机相册权限。
`SWQRCode_Objc` 主要 API :#pragma mark -- 扫一扫API
/**
处理扫一扫结果
@param value 扫描结果
*/
- (void)sw_handleWithValue:(NSString *)value {
NSLog(@"sw_handleWithValue === %@", value);
}
/**
相册选取图片无法读取数据
*/
- (void)sw_didReadFromAlbumFailed {
NSLog(@"sw_didReadFromAlbumFailed");
}