iOS6和xcode 5.01;
当我使用iphone模拟器运行时,它可以预览文件,但是使用设备时,它会失败。
//device path
NSString *path = @"/var/mobile/Applications/1AE864F5-A57F-47E7-829E-69DCFC63D8CD/tmp/11523invite.ics";
UIDocumentInteractionController *controller = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath:path isDirectory:NO]];
controller.delegate =self;
[controller presentPreviewAnimated:YES];
发生了什么?
答案 0 :(得分:0)
@property (nonatomic, retain) UIDocumentInteractionController *docController;
使用UIDocumentInteractionController的属性