二维码扫描组件 QRCodeReaderViewController

码农软件 · 软件分类 · 条形码/二维码 · 2019-10-08 06:14:00

软件介绍

QRCodeReaderViewController 是一个用于 iOS 7 的二维码扫描组件。

screenshot

使用方法:

- (IBAction)scanAction:(id)sender
{
  QRCodeReaderViewController *reader = [QRCodeReaderViewController new];
  reader.modalPresentationStyle      = UIModalPresentationFormSheet;

  // Using delegate methods
  reader.delegate                    = self;

  // Or by using blocks
  [reader setCompletionWithBlock:^(NSString *resultAsString) {
    [self dismissViewControllerAnimated:YES completion:^{
      NSLog(@"%@", result);
    }];
  }];

  [self presentViewController:reader animated:YES completion:NULL];
}

#pragma mark - QRCodeReader Delegate Methods

- (void)reader:(QRCodeReaderViewController *)reader didScanResult:(NSString *)result
{
  [self dismissViewControllerAnimated:YES completion:^{
    NSLog(@"%@", result);
  }];
}

- (void)readerDidCancel:(QRCodeReaderViewController *)reader
{
  [self dismissViewControllerAnimated:YES completion:NULL];
}

本文地址:https://codercto.com/soft/d/16277.html

Release It!

Release It!

Michael T. Nygard / Pragmatic Bookshelf / 2007-03-30 / USD 34.95

“Feature complete” is not the same as “production ready.” Whether it’s in Java, .NET, or Ruby on Rails, getting your application ready to ship is only half the battle. Did you design your system to......一起来看看 《Release It!》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具