Failed To Load Quicklookd With Error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up PDF not opening in UIDocumentInteractionController when guided access enabled up vote 1 down vote favorite 1 I'm working with a UIDocumentInteractionController in iOS 7 to preview a PDF which is installed as part of the app bundle. Everything works great when I load the file using; NSURL *url = [[NSBundle mainBundle] URLForResource:pdfName withExtension:@"pdf"]; self.documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL:url]; self.documentInteractionController.delegate = self; [self.documentInteractionController presentPreviewAnimated:YES]; As expected the PDF loads absolutely fine and a preview controller appears showing the document. As soon as I put the device into Guided Access mode and then try to open the PDF the controller appears as expected but the PDF does not appear, instead the controller shows the file name, format and size. Debugging in Xcode I see the following message in the log; Failed to load quicklookd with error : The operation couldn’t be completed. (_UIViewServiceInterfaceErrorDomain error 0.) As a sanity check I tried using a QLPreviewController as well but this has yielded exactly the same result. Does anyone have any pointers on this? Trawling through the documentation I haven't been able to turn up much yet. ios pdf guided-access share|improve this question edited Mar 6 '14 at 23:39 asked Mar 6 '14 at 23:29 marcus.ramsden 1,8141125 Looks like an Apple bug. Have you tried with the iOS7.1 beta 5 SDK? Perhaps it has been fixed there. Is this on a device or simulator? Try on device. If it still fails, you should open a bug report with Apple and post the radar number so people can duplicate. –Leo Natan Mar 6 '14 at 23:43 Just grabbing the beta at the moment to give it a shot on a device. –marcus.ramsden Mar 6 '14 at 23:45 Remembe
Resolved: Product:iOS Product Version:7+ Classification:Bug Reproducible:Always Summary: If I background the app before calling presentPreviewAnimated on a UIDocumentInteractionController, the preview is presented onto the screen but does not show the document and logs a message of: Failed http://stackoverflow.com/questions/22238405/pdf-not-opening-in-uidocumentinteractioncontroller-when-guided-access-enabled to load quicklookd with error : The operation couldn’t be completed. (_UIViewServiceInterfaceErrorDomain error 2.) Steps to Reproduce: Background the App call presentPreviewAnimated on a UIDocumentInteractionController Foreground the App Expected Results: Observe a http://www.openradar.me/21700418 document preview view controller Actual Results: Observe a document info, but not preview, view controller Version: iOS 7 and above Notes: Configuration: Any iPhone Comments ag9zfm9wZW5yYWRhci1ocmRyEgsSBVJhZGFyGICAgOCn-uAKDA Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you! Running on Google App Engine (HRD, Python 2.7). Source code on GitHub. Answers to Frequently Asked Questions. On Twitter.
| Más información Ingresar Recordar Registro Preguntas Sin responder Etiquetas Usuarios Hacer una pregunta Busqueda Hacer una pregunta QLPreviewController: quicklookd no poder cargar http://www.gatodev.com/index.php?qa=814817&qa_1=qlpreviewcontroller-quicklookd-no-poder-cargar preguntado por anónimo Dic 12, 2015 I've got some simple code showing a simple PDF, using QLPreviewController. It works great in the simulator, and in a very simple app. In the https://github.com/zats/watchtower app I actually want it to work in, it fails on the device. The device shows the preview view, but in place of the PDF it simply shows the text failed to "simple.pdf, Portable Document Format (PDF)" and the size of the file ("301KB" in this case). Interestingly, the log emits "Failed to load quicklookd with error : The operation couldn’t be completed. (Cocoa error 4097.)" I've tried: A couple of PDFs, a simple one full of text, and a the IRS' W4 PDF. Same results. UIDocumentInteractionController instead. Same results. Ruled out: I failed to load am linking with QuickLook.framework in build phases. [QLPreviewController canPreviewItem:] returns YES. My view heirarchy is not terribly complex; a UINavigationController fronting a SWRevealViewController. Doesn't matter how shallow or deep I am in the navigation hierarchy when the PDF is Quicklook'd. I'm out of ideas and am hoping someone recognizes the error. edit: app works fine on an iOS 6 device. Works in the simulator on 6.1, 7.0, and 7.1. Fails on a 7.0 device, argh! Por favor, ingresa o regístrate para responder a esta pregunta. 1 Respuesta 0 votos respondido por anónimo Dic 12, 2015 Finally narrowed it down to this line, which is called early during app launch. Oddly, adding this line alone to a simple app doesn't cause the failure, so there's some other additional interaction happening that I can't find. Sadly not a proper explanation, but at least I can now move on. Hopefully this answer'll save someone else some time! // We don't want Back button text, move it off-screen [[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(0, -60.f) forBarMetrics:UIBarMetricsDefault]; Por favor, ingresa o regístrate para añadir un comentario. Powered by CommunityTIC ...
Sign in Pricing Blog Support Search GitHub This repository Watch 0 Star 16 Fork 3 zats/watchtower Code Issues 1 Pull requests 0 Projects 0 Pulse Graphs QLPreviewController with remote URLs support 11 commits 1 branch 1 release Fetching contributors Objective-C 100.0% Objective-C Clone or download Clone with HTTPS Use Git or checkout with SVN using the web URL. Open in Desktop Download ZIP Find file Branch: master Switch branches/tags Branches Tags master Nothing to show 0.1 Nothing to show New pull request Latest commit 47066ce Feb 17, 2013 Alexander Zats Update README.md Permalink Failed to load latest commit information. RemoteQuickLookTest Moar refactoring.. why would Xcode force you to choose name in the ve… Feb 17, 2013 Resources Initial working version Feb 17, 2013 Vendor Initial working version Feb 17, 2013 Watchtower.xcodeproj Moar refactoring.. why would Xcode force you to choose name in the ve… Feb 17, 2013 Watchtower refactoring Feb 17, 2013 .gitmodules Initial working version Feb 17, 2013 README.md Update README.md Feb 17, 2013 README.md What, why This is a simple extension over QLPreviewController allowing to display remote files. I created it primarily because QLPreviewItem states that previewItemURL must be a file-type URL (local files only). Installation $ cd your_project $ git submodule add git@github.com:zats/watchtower.git Vendor/Watchtower $ cd Vendor/Watchtower $ git submodule update --init --recursive Add all the Watchtower folder to your project Add QuickLook.framework to your targets Optionally: if you don't use AFNetworking in your project, make sure you've added files from the Vendor/AFNetworking folder Usage #import "AZAPreviewController.h" That's it, the rest is exactly like QLPreviewController, just specify remote URL instead of local in QLPreviewItem instance. For more details see included project. Notes Class AZAPreviewItem simply provides default implementation of QLPreviewItem protocol making previewItemURL and previewItemTitle parameters writable. If you want to be notified when remote item failed to load you have to implement AZAPreviewControllerDelegate corresponding protocol method: - (void)AZA_previewController:(AZAPreviewController *)controller failedToLoadRemotePreviewItem:(id