AZQrCodeScanController 1.1.2

AZQrCodeScanController 1.1.2

测试已测试
Lang语言 Obj-CObjective C
许可 MIT
发布上次发布2018年1月

AZReal 维护。



  • AZReal

AZQrCodeScanController

介绍

AZQrCodeScanController 是对iOS原生框架AVFoundation, 一句话即可调用iOS原生扫码。

安装

	// 全部导入(包含OC和swift)
	pod 'AZQrCodeScanController'
	// 只导入swift
	pod 'AZQrCodeScanController/swift'
	// 只导入OC
	pod 'AZQrCodeScanController/oc'

初始化方法 (OC)

	AZQrCodeScanController *c = [[AZQrCodeScanController alloc] initWithScanComplete:^*(NSString *result) {
		NSLog(@"%@", result);
	}];
	[self presentViewController:c animated:true completion: nil];

初始化方法(swift)

	let c = AZQrCodeScanController { (result) in
	    print(result)        
    	}
    	present(c!, animated: true, completion: nil)

效果图

示例图

项目地址

github地址