扫描二维码:
下载点击打开链接 然后直接调用即可。
-(void)scannClick
{
// 扫描二维码
WQCodeScanner *scanner = [[WQCodeScanner alloc] init];
[self presentViewController:scanner animated:YES completion:nil];
scanner.resultBlock = ^(NSString *value) {
// UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:value message:@"" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
// [alertView show];
ScannCodeViewController * scannCodeVC = [[ScannCodeViewController alloc] init]; // 获取内容跳转到web页面
scannCodeVC.urlStr = value;
[self.navigationController pushViewController:scannCodeVC animated:YES];
};
}