CocoaPods trunk is moving to be read-only. Read more on the blog, there are 9 months to go.

AZQrCodeScanController 1.1.2

AZQrCodeScanController 1.1.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jan 2018

Maintained by AZReal.



  • By
  • AZReal

AZQrCodeScanController

介绍

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

installation

	// 全部导入(包含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地址