【代码笔记】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?
轉載于:https://www.cnblogs.com/yang-guang-girl/p/7305229.html
總結
以上是生活随笔為你收集整理的【代码笔记】iOS-二维码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 日常API之QQ登录
- 下一篇: 透过源码看Session