DocInteraction (UIDocumentInteractionController) example code damaged on iOS 4.3 simulator

DocInteraction example code provided 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 in simulation 4.3. However, it works great on 4.2. I looked through, but do not receive any errors or any warnings. Not quite sure what is going on. Thought I'd ask here. I have already reported this. It just loads a white screen.

Any ideas?

+6
source share
1 answer

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

@interface DITableViewController : UITableViewController <QLPreviewControllerDataSource, QLPreviewControllerDelegate, 

The QLPreviewControllerDelegate command was missing .

+7
source

Source: https://habr.com/ru/post/893033/


All Articles