本文實(shí)例為大家分享了iOS二維碼的生成代碼,供大家參考,具體內(nèi)容如下
一、工程圖。
二、代碼。
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
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持武林網(wǎng)。
新聞熱點(diǎn)
疑難解答
圖片精選