You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
654 B
32 lines
654 B
1 year ago
|
//
|
||
|
// LCQrcodeUtil.h
|
||
|
// 二维码测试
|
||
|
//
|
||
|
// Created by 刘通超 on 16/5/5.
|
||
|
// Copyright © 2016年 刘通超. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <UIKit/UIKit.h>
|
||
|
|
||
|
@interface LCQRCodeUtil : NSObject
|
||
|
/**
|
||
|
* 生成二维码图片
|
||
|
*
|
||
|
* @param QRString 二维码内容
|
||
|
* @param sizeWidth 图片size(正方形)
|
||
|
* @param color 填充色
|
||
|
*
|
||
|
* @return 二维码图片
|
||
|
*/
|
||
|
+(UIImage *)createQRimageString:(NSString *)QRString sizeWidth:(CGFloat)sizeWidth fillColor:(UIColor *)color;
|
||
|
|
||
|
/**
|
||
|
* 读取图片中二维码信息
|
||
|
*
|
||
|
* @param image 图片
|
||
|
*
|
||
|
* @return 二维码内容
|
||
|
*/
|
||
|
+(NSString *)readQRCodeFromImage:(UIImage *)image;
|
||
|
@end
|