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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:25:19+00:00 2026-05-18T23:25:19+00:00

I am sending a notification from one view to another view. My problem is

  • 0

I am sending a notification from one view to another view. My problem is that the notification in the view that I am calling in my cellForRowAtIndexPath method is only getting sent when the tableview is scrolling. How can I stop this and make it send the notification once the images have downloaded? Here is my code: https://gist.github.com/756302

Thanks

MKDev

  • 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-18T23:25:19+00:00Added an answer on May 18, 2026 at 11:25 pm

    as far as I understand your code, the message will trigger the reload of the whole table. That should lead to a refresh of the cells.

    Thus, you’ll need to check in line 76, if the cell is being drawn because a reload was triggered from the finish-message (and the image is now ready to display) or if you need to start the asynchronous download of the image.

    The first thing which comes into my mind to check this is to set a property in reloadTableView:

    - (void)reloadTableView
    {
        [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"aaa"];
        [[NSNotificationCenter defaultCenter] removeObserver:self name:@"name" object:nil];
        NSLog(@"removeobserver");
        loadImageFinished = YES;
        // if your table has several sections you'll need to adopt the section number 
        NSIndexSet *indices = [[NSIndexSet alloc] initWithIndex:0];
        [self.tableView reloadSections:indices withRowAnimation:UITableViewRowAnimationFade];
        [indices release];
    }
    

    and then to add in

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
       ...
       if (loadImageFinished) {
          ... 
       } else {
          [asyncImage loadImageFromURL:[NSURL URLWithString:pathImage]];
       }
       ...
    }
    

    Note that there could be other reasons why the table is being reloaded – the view could have been disappeared or unloaded and you might not wish to trigger your asynnchronous loading several times.

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

Sidebar

Related Questions

In my system has the function to sending email notification to warn another department
I'm getting an NSObjectInaccessibleException when sending NSManagedObject as object with NSNotification. The notification is
I am having issue when sending data from Service to Activity through Notification ,
I installed the exception notification plugin from http://github.com/rails/exception_notification/tree/master I can confirm that my ActionMailer
What's a good alternative to Notification Services now that Microsoft has removed it from
i have a data service hosted in azure from which i am sending notification
I am sending Push notification from PHP to iPhone. Connection was established successfully but
I have designed an application in which i am sending a push notification. That
Sending a message from the Unix command line using mail TO_ADDR results in an
M sending the parameters from the jsp page, the code is <s:url id=url action=searchAction>

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.