My UIDocumentsInteractionController works with what is an action sheet with an βiBooksβ button, but when I click on this button, it just quits, and that doesn't bring me to iBooks. Here is my code:
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];
What am I doing wrong? Thanks
source share