CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | May 2017 |
Maintained by zhang28602.
Using the system API (AVFoundation) for packaging, including the UI interface and QR code, barcode scanning, generating and other operations 中文说明
platform :ios, '8.0'
use_frameworks!
pod 'ZZYQRCode', '~> 1.0.0'
- (instancetype)initWithAVCaptureQuality:(AVCaptureQuality)quality
AVCaptureType:(AVCaptureType)type
scanRect:(CGRect)scanRect
successBlock:(SuccessBlock)success;- (void)showPreviewLayerInView:(UIView *)view;@property(assign, nonatomic) BOOL isPlaySound;
@property(copy, nonatomic) NSString *soundName;- (void)turnTorch:(BOOL)state;- (void)scanPhotoWith:(UIImage *)image successBlock:(SuccessBlock)success;+ (void)checkAuthorizationStatusForCameraWithGrantBlock:(void(^)())grant
DeniedBlock:(void(^)())denied;UIImage *image = [UIImage createQRCodeWithSize:200 dataString:@"hello"];UIImage *icon = [UIImage imageNamed:@"bigMax"];
UIImage *image = [UIImage createQRCodeWithSize:200
dataString:@"hello"
QRCodeImageType:circularImage
iconImage:icon
iconImageSize:40];Because of iOS10 authorization change,you need to add code in your info.plist
<key>NSCameraUsageDescription</key>
<string></string>
<key>NSPhotoLibraryUsageDescription</key>
<string></string>