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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:03:08+00:00 2026-06-05T22:03:08+00:00

In my connection DidReceiveData method I have an NSLog that prints the percentage data

  • 0

In my connection DidReceiveData method I have an NSLog that prints the percentage data received and it is working well. I need to display this percentage on a UILabel but the UILabel is not getting updated. I am able to update the UILabel from other methods like viewDidLoad or by pressing a button. But from the connection did receive data I am not getting any change. What could be the catch here. There is nothing wrong with my Label, and my calculations. Does this method get run in the background or something.

  • 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-05T22:03:09+00:00Added an answer on June 5, 2026 at 10:03 pm

    Assuming you haven’t done anything funky to make that run on a background queue/thread (it should be main queue/thread by default), there are a couple possibilities that come to mind:

    1. The method is getting called before your view is actually set up. This could certainly happen in certain circumstances where you kick off network activity before you set up the UI.

    2. The actual UILabel isn’t wired up correctly, though this seems unlikely if things work in -viewDidLoad.

    To test, break in the method and po myLabel to make sure it’s not nil.

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

Sidebar

Related Questions

Quick question: On the method - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data from the NSURLConnectionDataDelegate, if
I have looked at NSURLConnectionDelegate connection:didReceiveData not working already, but there didn't seem to
I have a method that asynchronously downloads images. If the images are related to
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data { xmlParseChunk(context, (const char *)[data bytes], [data length], 0);
I have the worst internet connection atm, so sorry if this has been asked
I have this method to get xml file from google reader with the contens
I have data returned from a service that is rendered to my UITableView several
I have been working on a JSON parser for a little while https://github.com/nathanday/ndjson that
I have this code that is trying to access an FTP using the URL.
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data { response=[[NSString alloc]initWithData:data encoding:NSUTF8StringEncoding];} Here, I get the response

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.