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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:10:00+00:00 2026-06-13T07:10:00+00:00

I am developing an iPhone application that downloads or views PDFs. Within this application,

  • 0

I am developing an iPhone application that downloads or views PDFs.

Within this application, I would like to display a list of possible external applications that can view PDFs (iBooks, Adobe Reader, etc.). How could I determine these applications and bring up such a list when clicking on a button in my application?

  • 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-13T07:10:01+00:00Added an answer on June 13, 2026 at 7:10 am

    You can achieve this via two different cases as it depends on your requirements. Over here I have included both of the cases, & this will work with charm :

    Case 1: Download the PDF, write it locally & set the path.

    NSData *pdfData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:@"PDFurlString"]];
    
    //Store the Data locally as PDF File
    
    NSString *resourceDocPath = [[NSString alloc] initWithString:[[[[NSBundle mainBundle]  resourcePath] stringByDeletingLastPathComponent] stringByAppendingPathComponent:@"Documents"]];
    
    NSString *filePath = [resourceDocPath stringByAppendingPathComponent:@"myPDF.pdf"];
    
    [pdfData writeToFile:filePath atomically:YES];
    
    
    //Now create Request for the file that was saved in your documents folder
    
    NSURL *url = [NSURL fileURLWithPath:filePath];
    
    NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
    
    [webView setUserInteractionEnabled:YES];
    
    [webView setDelegate:self];
    
    [webView loadRequest:requestObj];
    

    Case 2: View the PDF directly in WebView using NSData.

    [webview loadData:fileData MIMEType:@"application/pdf" textEncodingName:@"utf-8" baseURL:nil];
    

    Now, at the end,if you are looking to open the PDF into some other App,

    Step 1 :
    Use the First Case, just grab the url.

    Step 2 :
    You can find the biggest database of those url schemes here. Now, how to use? All that we’ll need is UIApplication. First, we need check if the iOS can open specific url.

    [[UIApplication sharedApplication] canOpenURL:[NSURL urlWithString:@"fb://profile"]];
    

    Step 3: If this method returns yes then the user has the facebook application installed. To open the following application you need to call:

    [[UIApplication sharedApplication] openURL:[NSURL urlWithString:@"fb://profile"]];
    

    Which will open your facebook profile on the facebook application.

    Alas, there is no possibility of disabling any other application on the iOS, since each and every third party software is being sandboxed.

    Hope this was helpful to you.

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

Sidebar

Related Questions

I'm developing one application for iphone using phone gap.I that I need to display
I am new to this iPhone development. Am developing a catalogue application. In that
I'm developing an iPhone application that show the camera's view with this code: -(void)
I'm interested in developing an iPhone application that would be useful to some of
I have one problem when developing iphone application. I would like to know if
I'm developing an iPhone application that have a TabBarController with two tabs. Each tab
I am developing an iPhone application that retrieves the data from remote MySQL server.
I am new to iPhone application development. In the application that I am developing
In an iPhone application I'm developing I have a Image View that displays eyes
I'm starting developing applications for iPhone. My idea is to develop a application like

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.