DocInteraction sample code (UIDocumentInteractionController) broken on iOS 4.3 simulator

﹥>﹥吖頭↗ 提交于 2020-01-03 10:54:19

问题


The DocInteraction sample code made available by Apple at http://developer.apple.com/library/ios/#samplecode/DocInteraction/Introduction/Intro.html (download: http://developer.apple.com/library/ios/samplecode/DocInteraction/DocInteraction.zip ) does not work when simulating on 4.3. It works fine on 4.2 though. I've looked through but don't get any errors or any warnings. Not really sure what's going on. Thought I'd ask here. I already reported it. It just loads a white screen.

Any ideas?


回答1:


Try replacing the line number 53 with following code in DITableViewController.h

@interface DITableViewController : UITableViewController <QLPreviewControllerDataSource, QLPreviewControllerDelegate,

It was missing the QLPreviewControllerDelegate delegation.



来源:https://stackoverflow.com/questions/6741565/docinteraction-sample-code-uidocumentinteractioncontroller-broken-on-ios-4-3-s

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!