iOS二维码 iOS二维码的生成代码
弦外雨 人气:0想了解iOS二维码的生成代码的相关内容吗,弦外雨在本文为您仔细讲解iOS二维码的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点: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
加载全部内容