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

  • Home
  • SEARCH
  • 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 6722843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:29:47+00:00 2026-05-26T09:29:47+00:00

I have an app with dynamic data and the update method uses arrayWithContentsofURL and

  • 0

I have an app with dynamic data and the update method uses arrayWithContentsofURL and dictionaryWithContentsofURL to get the plists from a server in order to update my database.

My problem:

When there is no or not correctly working internet connection on the device this request simply tries to get the data for about a minute before it stops trying and continues execution.

Is there a way to maybe set a timeout for this function?

PS: I know this is probably the worst way to do this and I would be happy if someone could point me in the right direction 🙂 I’m quite new to iOS programming so please be patient.

  • 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-26T09:29:48+00:00Added an answer on May 26, 2026 at 9:29 am

    In my opinion it’s best to use an NSMutableURLRequest with it.

    Which has a - (void)setTimeoutInterval method. From the documentation:

    The timeout interval, in seconds. If during a connection attempt the
    request remains idle for longer than the timeout interval, the request
    is considered to have timed out. The default timeout interval is 60
    seconds.

    Suggest you use an NSURLRequest to send the Request object. Its delegate functions will return you the plist.

    You could take this example, about half way on that page it downloads a json object very much the same way as you could fetch a plist.

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

Sidebar

Related Questions

I have this problem where I can't get my dynamic data web app to
I have an app which could benefit from the user being able to choose
I am having trouble nailing down the best method for passing data from a
I have been trying to generate simple PDFs from my app so that I
For my palm pre app I have a dynamically generated list (pulling in data
I have a dynamic page built with jQuery. Html pieces are loaded from mustache
I have a few questions about google app engine / datastore and storing dynamic
I created an app from a Xcode template and selected Core Data as an
i currently have highcharts realtime graph working on a browser (e.g. http://www.highcharts.com/demo/dynamic-update ), but
I'm developing a dynamic data app, in which I'm trying perform insert RequestRevision during

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.