Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8388485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:28:56+00:00 2026-06-09T18:28:56+00:00

I have small code to open pdf file from my application in iBooks using

  • 0

I have small code to open pdf file from my application in iBooks using UIDocumentInteractionController. It works.
But i just want to save and add file to iBooks library, not open it immediately, that means when user choose iBooks application from menu, only an alert view will be displayed to notice user that app successfully add to iBooks, not open pdf file, and user still in app.
Any idea for my problem, please helps me, thanks alot
Here is my sample code i use to open pdf file in ibook from my app

NSURL *url = [NSURL fileURLWithPath:FilePath];
UIDocumentInteractionController *docController = [UIDocumentInteractionController interactionControllerWithURL:url];

docController.delegate = self;
[docController retain];
BOOL isValid = [docController presentOpenInMenuFromRect:CGRectZero inView:self.view animated:YES];
if(isValid){
}

Btw, if there is no way to solve my problem without open ibooks, so is there other ways to back to my application when user read book in ibook without press home button

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:28:57+00:00Added an answer on June 9, 2026 at 6:28 pm

    The way you describe the flow of saving is not the way Apple’s API work.

    If you use the UIDocumentInteractionController the PDF you will be send to the app the user selects. Nothing is done underwater, the file URL is literally send over to the other app.
    This app (ex. iBooks) will the have check the file and save it. Thus there is nothing you can do to stop it from opening the app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi all i have written a small code to open a particular text file.
I have a small open GL application I'm writing in Java using JOGL. I'm
I have a small code base using Subsonic 2.1 in my project. I would
I have a small code that doesn't want to work at all when I
I have a small piece of code that works as a plugin for a
I have this small code using SQL Server Agent to Run a Remote Package
I have a small MVC 3 app using Entity Framework Code First and use
I have a small scripting engine written which can run basic code. I want
I have this small code library that I'm considering releasing into Open Source. I
I have a small file read routine and I want only the 1st 200

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.