我的 UIDocumentsInteractionController 正在工作,只要显示一个带有“iBooks”按钮的操作表,但是当我单击该按钮时,它只是关闭并且它不会带我到 iBooks。这是我的代码:
NSString *filenamePath =[NSString stringWithFormat:@"temp.%@", [[file path] pathExtension]];
NSString *docDir = [DataCenter getDocumentsDirectoryPath];
NSString *fullPath = [docDir stringByAppendingPathComponent:filenamePath];
NSURL *url = [NSURL fileURLWithPath:fullPath];
UIDocumentInteractionController *c = [UIDocumentInteractionController interactionControllerWithURL:url];
BOOL success = [c presentOpenInMenuFromBarButtonItem:buttonBack animated:YES];
我究竟做错了什么?谢谢