这篇文章主要为大家详细介绍了iOS二维码的生成代码,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
本文实例为大家分享了iOS二维码的生成代码,供大家参考,具体内容如下
一、工程图。
二、代码。
ViewController.m
#import "ViewController.h" #import "ScanViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. } -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { ScanViewController *scanView=[[ScanViewController alloc]init]; [self.navigationController pushViewController:scanView animated:NO]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } @end
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持北冥有鱼。
您可能感兴趣的文章:
- iOS开发生成二维码图片(附中间带有小图标二维码)
- iOS二维码的生成和扫描
- ios swift3.0实现二维码扫描、生成、识别示例代码
- iOS中生成指定大小、指定颜色的二维码和条形码方法详解
- iOS 二维码生成及扫码详解及实例代码
- IOS生成与读取二维码名片
- IOS笔记061之二维码的生成和扫描
- iOS使用CIFilter生成二维码