title: QR code ios 7 AVMetadataObject
body: <p>I Have problem with detect where is qr code.</p>
  
  <p>I need draw border around it.</p>
  
  <p>I use AVMetadataObject bezierpath, but it dont work.</p>
  
  <p>Please help me.</p>
  
  <pre><code>- (void)captureOutput:(AVCaptureOutput *)captureOutput
  didOutputMetadataObjects:(NSArray *)metadataObjects
         fromConnection:(AVCaptureConnection *)connection
  {
      for (AVMetadataObject *metadata in metadataObjects)
      {
              AnimationView *cv = [[AnimationView alloc]initWithFrame:self.livevideo.bounds]; //creat an instance of your custom view
          [cv setBackgroundColor:[UIColor clearColor]];
  
  
  
          NSLog(@"%f",metadata.accessibilityPath.accessibilityActivationPoint.x);
  
          [location addSubview:cv];
  
  
          if ([metadata.type isEqualToString:AVMetadataObjectTypeEAN13Code])
          {
  
          }
          else if ([metadata.type isEqualToString:AVMetadataObjectTypeUPCECode])
          {
  
          }
          else if ([metadata.type isEqualToString:AVMetadataObjectTypeEAN8Code])
          {
  
          }
          else if ([metadata.type isEqualToString:AVMetadataObjectTypeQRCode])
          {
  
          }
      }
  }
  </code></pre>