ios6中的UIDocumentInteractionController预览.ics

时间:2013-12-30 08:30:59

标签: iphone ios6

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];

发生了什么?

1 个答案:

答案 0 :(得分:0)

@property (nonatomic, retain) UIDocumentInteractionController *docController;

使用UIDocumentInteractionController的属性