I am working with QuickLook to view PDF files.
It works correctly in iOS 7.1, but some problems arise with iOS 8 GM.
Pictures are better than words, I want to show you problems:
iOS 7.1 Xcode 6 (works great)
Switching from QuickLook (no crash)

Scrolling page, navigation bar is well hidden

-------------------------------------------- ------ ------------------------
And now iOS 8 GM with Xcode 6
Switching from QuickLook ...

Scrolling the page, the navigation bar does not hide, the page indicator hides behind the navigation panel

Same issue with iPhone simulator, iPad simulator, iPhone device and iPad device.
Here you can see my source code:
- (NSInteger)numberOfPreviewItemsInPreviewController:(QLPreviewController *)previewController { NSInteger numToPreview = 0; if (currentSection == CVSectionConvocations) numToPreview = self.convocation.convocations.count; else if (currentSection == CVSectionAttachments) numToPreview = self.convocation.attachements.count; return numToPreview; } - (id)previewController:(QLPreviewController *)previewController previewItemAtIndex:(NSInteger)idx { PDF *pdf; if (currentSection == CVSectionConvocations) pdf = self.convocation.convocations[idx]; else if (currentSection == CVSectionAttachments) pdf = self.convocation.attachements[idx]; return [pdf path]; } - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath { // determine section currentSection = (indexPath.section == 0 ? CVSectionConvocations : CVSectionAttachments); PDF *pdf; if (currentSection == CVSectionConvocations) pdf = self.convocation.convocations[indexPath.row]; else if (currentSection == CVSectionAttachments) pdf = self.convocation.attachements[indexPath.row]; if ([pdf isStored]) { QLPreviewController *previewController = [[QLPreviewController alloc] init]; previewController.dataSource = self; previewController.delegate = self; previewController.currentPreviewItemIndex = indexPath.row; [[self navigationController] pushViewController:previewController animated:YES]; } else { [self displayMessage:@"Document not found" title:@"Oups !"]; } }
Thank you for your help;)
ios objective-c quicklook
thedjnivek
source share