<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          QRCodeReaderViewController二維碼掃描組件

          聯(lián)合創(chuàng)作 · 2023-09-30 13:02

          QRCodeReaderViewController 是一個用于 iOS 7 的二維碼掃描組件。

          使用方法:

          - (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];
          }
          瀏覽 24
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  能操网站 | 青娱乐极品视频在线 | 激情五月丁香五月 | 欧美操B视频在线观看 | www.色日 |