本文实例为大家分享了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二维码内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复