I have an Xcode iOS app. I want to load a local stored PDF file by clicking a button to iBooks or another PDF readable button. How can I save a local PDF file to iBooks (or an other PDF reader) by clicking a button?
1 Answers
0
votes
Use "openUrl" in the action of that button for iBooks which opens the given file in openURL in iBooks which automatically adds it to iBooks or give save option to it.
Check with canOpenURL before using to check whether iBooks installed or not.
[[UIApplication sharedApplication] openURL:@"itms-books://your-pdf-path"];