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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:50:27+00:00 2026-05-18T04:50:27+00:00

I need to read NSURL Loading data percentage value. That is, I want to

  • 0

I need to read NSURL Loading data percentage value.

That is, I want to read how many percentage amount of data is loading on URL Loading time.

Suppose a URL take 30 seconds to loading data completely, I want to know in 15th sec how many percentage of data is loading in my String, and 20th sec how many percentage of data is loading in my String, like this I need.

  • 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-18T04:50:27+00:00Added an answer on May 18, 2026 at 4:50 am

    First of all, you will have to use NSURLConnection. In its delegate’s implementation include the following method:

    - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSHTTPURLResponse *)response {
        long long contentLength = [response expectedContentLength];
        ...
    }
    

    Note that the only way to know how many bytes the server is going to return is to retrieve the value from its HTTP response. If you find that expectedContentLength returns -1 (and you should be prepared for that), the server does not return a meaningful value for the downloaded content size, perhaps because it doesn’t support the feature. In such a case you should resort to alternative ways to get the byte size.

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

Sidebar

Related Questions

I need to read data added to the end of an executable from within
I need to read the value of a property from a file in an
I need to read the user's fingerprint from my application. What I really want
I need to read a properties files that's buried in my package structure in
I need read in and parse data from a third party website which sends
New to WPF. I am creating UserControls that need read access to the ViewModel
I have an expensive function that takes and returns a small amount of data
atm i can successfully loading data from a WFC, read the json and put
I need to read UML diagrams that are serialized into XMI. Is there any
I have a table in PostgreSQL that I need read into memory. It 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.