Hide markup in QLPreviewController on iOS 10

I need to use QLPreviewController to open PDF and JPEG documents in my application. I implemented it this way:

 -(void)openQuickLook{ QLPreviewController *preview = [[QLPreviewController alloc] init]; preview.currentPreviewItemIndex = 0; preview.delegate = self; preview.dataSource = self; UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:preview]; [self presentViewController:nav animated:YES completion:nil]; } #pragma mark - Quicklook -(NSInteger)numberOfPreviewItemsInPreviewController:(QLPreviewController *)controller{ return photos.count; } -(id<QLPreviewItem>)previewController:(QLPreviewController *)controller previewItemAtIndex:(NSInteger)index{ return photos[index]; } 

When I call the openQuickLook method, the preview controller is displayed in the bottom pane with editing tools similar to the iOS Layout feature. This only happens in JPEG files. The bar is fixed on the screen; I can choose colors and sizes, but I cannot draw anything on the image.

I need to remove this panel from the preview preview controller, but I did not find anything about this feature on the Internet.

iOS QuickLook

+5
source share

Source: https://habr.com/ru/post/1266542/


All Articles