title: Quicklook/QLPreviewController delegate methods are not calling in iOS 10 Xcode 8
body: <p>Currently I am testing my current version in iOS10. I am using <strong>Xcode 8</strong> beta 6 for testing. Here <strong>Quicklook/QLPreviewController delegate methods are not calling.</strong> This code set had been worked with XCode 7 and iOS 9.3 versions. I checked this issue in Apple Developer forum. But could not find a answer. Anyone have fixed this issue? (I am using Objective-C)</p>
  
  <p>How to use Quicklook/QLPreviewController in XCode 8 (<strong>iOS 10</strong>)?</p>
  
  <p>//----------------- SOLUTION for iOS 10 ( previewer as a subview)  -------------------</p>
  
  <p>This issue is occurred when you add the the previewer as a subview. Then we are using below code lines mainly in iOS 9.3 and below versions.</p>
  
  <pre><code>[self addChildViewController:previewer];
  self.view addSubview:previewer.view];
  [previewer didMoveToParentViewController:self];
  </code></pre>
  
  <p>In iOS 10 issue comes due to the below code line.</p>
  
  <pre><code>[self addChildViewController:previewer];
  </code></pre>
  
  <p>For iOS 10 we need to check the version and add above code line. Below is the working code set.</p>
  
  <pre><code>    QLPreviewController* previewer = [[QLPreviewController alloc] init];
  
      previewer.dataSource = self;
      previewer.delegate = self;
      // To avoid iOS 10 previewer issue.
      if (SYSTEM_VERSION_LESS_THAN(@"10.0")) {
          [self addChildViewController:previewer];
      }
      CGFloat width = self.view.frame.size.width;
      CGFloat height = self.view.frame.size.height;
      previewer.view.frame = CGRectMake(0, 102, width, height-300);
      [self.view addSubview:previewer.view];
  
      [previewer didMoveToParentViewController:self];
  </code></pre>