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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:30:49+00:00 2026-06-07T23:30:49+00:00

When I’m getting new data from my server I need to: update existing data

  • 0

When I’m getting new data from my server I need to:

  1. update existing data for the existing rows of UITableView and
  2. insert new rows with animation.

The thing is I don’t know when [UITableView reloadData] is finished for step 1,
so I can start step 2.

How to deal with this situation?

I prefer to use step 1 with [UITableView reloadData] for simplicity, but any other solution to achieve both steps in one logic step will be cool too.

UPDATE – maybe this is my mistake.

it’s seems that

-update data model with existing rows info

-reloadData

-update data model with new rows info

-insertWorsAtIndexPaths

works O.K now.

I removed some “ugly” way that force main thread to refresh after step 1, and for now, everything is O.K

(the “ugly way was calling [NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.0f] , that for some reason I need to add it to work in the past)

Wonder..if everything really O.K now.
Will Update if somthing still wrong.
Sorry for the troubles 🙂

update 2

this is how now I use it and seems to work ok :

-update existing rows in data model, then call

[UITableView reloadData];

-add new rows to data model, then call

[UITableView beginUpdates]

[UITableView insertRowsAtIndexPath withRowAnimation]

[UITableView endUpdates]
  • 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-07T23:30:52+00:00Added an answer on June 7, 2026 at 11:30 pm

    You could use reloadSections:withRowAnimation: to update your rows with an animation. Or you can use reloadData then insertRowsAtIndexPaths:withRowAnimation: it depends how do you get the data.

    Check the UITableView Reference

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

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
I have a text area in my form which accepts all possible characters from
i want to parse a xhtml file and display in UITableView. what is the

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.