简体   繁体   中英

DocInteraction sample code (UIDocumentInteractionController) broken on iOS 4.3 simulator

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?

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

@interface DITableViewController : UITableViewController <QLPreviewControllerDataSource, QLPreviewControllerDelegate,

It was missing the QLPreviewControllerDelegate delegation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM