这篇文章主要为大家详细介绍了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开发中使用writeToFile时的注意事项 2023-02-20
- AndroidStudio4.0日志中文乱码问题 2023-02-26
- 使用反射机制控制Toast的显示时间 2022-11-01
- android中adb命令最全总结 2023-04-11
- iOS 把图片保存到相册,并获取图片文件名的实例 2023-04-19
- iOS列表上拉(平滑加载数据)自动加载数据的问题解决 2023-07-01
- iOS触摸事件UITouch应用详解 2023-03-16
- iOS提取APP中的图片资源的方法 2023-04-01
- Flutter实现App功能引导页 2022-12-04
- Android Studio打包H5网址页面,封装成APK 2023-05-04