Hide right button n QLPreviewController?

后端 未结 8 1473
-上瘾入骨i
-上瘾入骨i 2021-01-17 01:35

I am subclassing QLPreviewController in my application and using the following code.

QLPreviewControllerSubClass* preview = [[QLPreviewControllerSubClass all         


        
8条回答
  •  逝去的感伤
    2021-01-17 01:58

    Simple solution for this is add one dummy view to current viewController and Add QLPreviewControlle.view to dummy view .

     previewController = [[QLPreviewController alloc] init];
     previewController.dataSource = self;
     previewController.delegate = self;
     previewController.currentPreviewItemIndex = 0;
    
    [self.ContentView addSubview:previewController.view];
    
    
    
    - (IBAction)removeQPView:(id)sender {
    
        [previewController.view removeFromSuperview];
    }
    

提交回复
热议问题