0

Bug screenshot link:

enter image description here

I use QLPreviewController, but it display out of screen.I don't know why? Need Help, thx!

self.previewingFileInfo = fileInfo;

QLPreviewController *previewController = [[QLPreviewController alloc] init];
previewController.dataSource = self;

[self.navigationController pushViewController:previewController animated:YES];

- (NSInteger)numberOfPreviewItemsInPreviewController:(QLPreviewController 
*)controller {
    return self.previewingFileInfo ? 1 : 0;
}

- (id<QLPreviewItem>)previewController:(QLPreviewController *)controller 
previewItemAtIndex:(NSInteger)index {
    return self.previewingFileInfo.URL;
}

//self.previewingFileInfo.URL --->>> file:///Users/liman/Library/Developer/CoreSimulator/Devices/C472DBF9-7DB5-4A09-B443-16F1D40EED52/data/Containers/Data/Application/E7E03D12-FD59-47F6-B2A8-20D75D6B5252/Library/Caches/Logs.zip
Vasilis G.
  • 7,556
  • 4
  • 19
  • 29
  • If you think your implementation is correct, but suspect an issue with QuickLook itself, you should definitely file a radar at bugreport.apple.com. – Raffael Jan 31 '18 at 10:33
  • agree with the above, i have the same bug as well. my implementation worked fine until ios11 – Itzik984 Jan 31 '18 at 16:53

0 Answers0