Quicklook/QLPreviewController delegate methods are not calling in iOS 10 Xcode 8

前端 未结 1 1288
囚心锁ツ
囚心锁ツ 2021-01-05 01:06

Currently I am testing my current version in iOS10. I am using Xcode 8 beta 6 for testing. Here Quicklook/QLPreviewController delegate methods are n

相关标签:
1条回答
  • 2021-01-05 01:48

    I met this problem too, but I can't fix this issue by your solution.. Here is my code:

    QLPreviewController *preview = [[QLPreviewController alloc] init];
    [preview setDataSource:self];
    [preview setDelegate:self];
    
    if(SYSTEM_VERSION_LESS_THAN(@"10.0"))
    {
        [self addChildViewController:preview];
    }
    
    [preview didMoveToParentViewController:self];
    [self.view addSubview:preview.view]; 
    
    0 讨论(0)
提交回复
热议问题