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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:37:30+00:00 2026-05-24T19:37:30+00:00

I’m trying to download a database plist file from the internet. I later load

  • 0

I’m trying to download a database plist file from the internet. I later load the contents into a UITableView, but that isn’t really the question (I figured it out already). What I have now is a list of football matches in my plist, with the results missing (as the matches were not played yet.) I successfully loaded that plist (it’s in my project directory).

I use this path

[[NSBundle mainBundle] pathForResource:@"data" ofType:@"plist"]

My questions are

  1. How can I download the data
  2. How can I show a “activity indicator” while downloading?
  3. Where is the downloaded data saved? (so I use it as a path like the one above)
  4. How can I make the app use the older version, if the new one can’t be downloaded (due to internet connection problems)

With my map I already provide an empty database (without the result), so if there is no internet connection during the first launch (after the app is downloaded), this can be used.

Thanks a lot in advance!

  • 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-24T19:37:31+00:00Added an answer on May 24, 2026 at 7:37 pm

    I used ASIHTTPRequest classes, and it works pretty well… It downloads ALL filetypes, not only .plist … you can really do many things with it (upload… etc) and the best part that it is both iPhone and Mac OS X compatible… The documentation is well made and the whole thing comes with a sample project :). So its easy to use.

    Install everything like the website says, add the frameworks, import the “ASIHTTPRequest.h” in the class you want to download the files.

    Play around with the code (I’m posting mine…), and viola, works nice and smooth…

    // setting the save path... 
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
        NSString *path = [paths objectAtIndex:0];
        NSString *downloadPath = [NSString stringWithFormat:@"%@/data.plist",path];
    //creating download / upload request like...
    ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://martin.archplan.sk/data.plist"]];
        [request setDidFailSelector:@selector(downloadFailed)];
        [request setDidFinishSelector:@selector(parseData)];
        [request setTimeOutSeconds:5];
        [request setDelegate:self];
        [request setDownloadDestinationPath:downloadPath];
        [request startSynchronous];
    

    Everyone who tried to help, thank you very much!!

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

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
i want to parse a xhtml file and display in UITableView. what is the
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am currently running into a problem where an element is coming back from
I'm trying to create an if statement in PHP that prevents a single post
I have a reasonable size flat file database of text documents mostly saved in
I am trying to understand how to use SyndicationItem to display feed which is

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.