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 9282215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T18:19:04+00:00 2026-06-18T18:19:04+00:00

I am using http://www.vfr.org/ , pdf viewer, and I try to add a button

  • 0

I am using http://www.vfr.org/, pdf viewer, and I try to add a button to open PDF in IBOOK.

I added the button and action to it, but I stuck t the moment when I want open ibooks application with this pdf.

I tried 2 solutions:

  1. button tapped action:

    NSURL *fileURL = document.fileURL;
    NSString *fileName = document.fileName; // Document
    [[UIApplication sharedApplication] openURL:fileURL];
    

It opens the IBOOKS but the PDF never gets loaded.

I am assuming the URL format can be wrong I tried even hard code a PDF URL like:

NSString *stringURL = @"itms-books://linktopdf.pdf";     
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];

But the same result.

2) Button tapped action:

    NSURL *fileURL = document.fileURL;
    NSString *fileName = document.fileName; // Document
    UIDocumentInteractionController *docController = [[UIDocumentInteractionController alloc] init];
    docController = [UIDocumentInteractionController interactionControllerWithURL:fileURL];
    docController.delegate = self;

But I have an warning where I try to delegate: docController.delegate = self;

assigning to id UIDocumentInteractionControllerDelegate from Incompatible ReaderViewController

Can someone help me to make it work at least 1 of these solution.

  • 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-18T18:19:05+00:00Added an answer on June 18, 2026 at 6:19 pm

    Has the ReaderViewController this kind of line in the header file: @interface ReaderViewController : NSObject < UIDocumentInteractionControllerDelegate > ?

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

Sidebar

Related Questions

I am using an XPTable (http://www.codeproject.com/Articles/11596/XPTable-NET-ListView-meets-Java-s-JTable) and try to add a comboBox column. The
For a long time, I have been using http://www.w3.org/Icons/valid-html401 as an image, but I
ANYONE using Datanucleus ( http://www.datanucleus.org/ ) with ECLIPSE RCP? Eclipse DOES NOT recognize Datanucleus
I'm using this ( http://www.j-download.com/demo/demo-j-dcontact.html ) form on my website. It works great but
I am testing html 5 video tag. I am using http://www.kaltura.org/project/HTML5_Video_Media_JavaScript_Library and http://camendesign.co.uk/ .
I am looking into using http://www.asual.com/jquery/address/ , but I am wondering how it effects
I'm using HTTP connection to scrape http://www.thecinemas.aw/main/ for data, but when I run it
I am using http://www.gnu.org/software/gnuprologjava/ to perform prolog stuff from Java application. In this context
I am trying to implement Riot CMS to my Spring-java web application using http://www.riotfamily.org/docs/quickstart.html
im using http://www.dhtmlgoodies.com/index.html?whichScript=quiz-maker but i want to be able to display a picture for

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.