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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:49:23+00:00 2026-05-25T06:49:23+00:00

I have an app I’m designing that will allow for lots of PDF viewing.

  • 0

I have an app I’m designing that will allow for lots of PDF viewing. There are a lot of different languages available, and so if I were to include all of them in the app, it would be like 100+ mb in size which just won’t fly.

So I’m thinking that I am going to put the pdf’s on my server, and access them with a direct download link like this:

http://mysite.com/pdfs/thepdf.pdf

Which will return the exact pdf I want. So I’m wondering how I can go about accessing these resources as I download them on the fly?

I imagine I need to save the pdf’s to the app resources folder? And then when a tableView row for the pdf is selected, I check if the pdf is in the resources folder (how do I do that?), and if not, pull it down off the server, and load it into my view?

I think I have an okay idea of what I need to do, just not very clear on the code to do it. Can anybody post the code for accessing the resources folder (if that’s actually what I need to be doing), and maybe the code for how to check if something is in the resources folder?

Thanks!

  • 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-05-25T06:49:23+00:00Added an answer on May 25, 2026 at 6:49 am

    Have you considered using a UIWebView to view the PDF instead of downloading and loading it yourself? UIWebView should take care of caching, so you won’t have to worry about that.

    Assuming that a UIWebView won’t work, to download PDFs and see if they exist, you need to store it in the Documents folder. The resources folder cannot be altered after you submit your app to Apple, but the Documents folder in your app is completely fine. To access it, I would actually recommend ConciseKit, which can be found on GitHub. It gives you a helper method to access your app’s document directory. The helper method is

    [$ documentPath];
    

    Then you can get the path for a file by doing

    [[$ documentPath] stringByAppendingPathComponent:@"file.pdf"];
    

    So that is how you get a path to a file, to check if it exists, you want to use NSFileManager.

    [[NSFileManager defaultManager] fileExistsAtPath:@"path from above"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have app that stores tree structure in CoreData. There is an ManagedObject, Item,
I have app with lot of windows and Im just curious is there (in
I have app in which i have recorded sound files i want that i
have an app that finds your GPS location successfully, but I need to be
Have an app that has listings - think classified ads - and each listing
My app have a background image that fills the screen. I'd like to display
I have an app running on my production server that uses the pg gem
I have app engine app that uses a java servlet to save a message
I have app that works perfectly fine on my Phone (desire HD). When I
I have app that sometimes crashes in navigating through Navigation bar and in console

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.