How to open a file on iBooks
How can I open a book on iBooks? I tried the following code, that works, but asks the user to choose an application to open the file: self.docController = [UIDocumentInteractionController alloc]; //leaves only the file name NSString *bookFile = @"my-book.pdf"; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex: 0]; NSString* filePath = [documentsDirectory stringByAppendingPathComponent: bookFile]; // Using the Book path self.docController = [UIDocumentInteractionController