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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:34:46+00:00 2026-06-03T22:34:46+00:00

In a UIViewController I hava a UITableView and an NSArray datalist, and I am

  • 0

In a UIViewController I hava a UITableView and an NSArray datalist, and I am trying to fill the tableview with datalist in [cellForRowAtIndexPath:indexPath]. In the UIViewController’s viewDidLoad, I write

    datalist = [LoadingService getDatalist]

The LoadingService is loading data from network to fill the datalist and the getDatalist message return the datalist. I know in viewdidload, the datalist may has no data, so no data shown in UITableView.
My question is that how can I show datalist’data in UITableView while the datalist updates?

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

    Answer: Don’t.

    If you have no data, then show a spinner (UIActivityIndicatorView), or a progress view (UIProgressView) to at least indicate that your app is processing, else the user will become frustrated at the perceived lag. Then, when your function has returned acceptable data, call -reloadData and it will show your newly updated array in the table, so long as you are the delegate of the aforementioned table. A lot of servers also return responses all at once instead of chunking.

    If you do happen to be working with multiple responses for one input, as each one is loaded into the array/datasource, call -reloadData to give the illusion of a “realtime update”.

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

Sidebar

Related Questions

I have a UIViewController that contains a UITableView. I'm trying to fill this table
In my UIViewController's viewDidLoad method I instance a UIImageView instance called stage: stage =
I have a UIViewController that contains a subview and a UIToolbar. I'm trying to
I have a UIViewController I am loading from a xib file and pushing onto
In a UIViewController's viewDidLoad method, I do this: UIButton *b = [[UIButton buttonWithType:UIButtonTypeRoundedRect] initWithFrame:CGRectMake(0,
I have a UIViewController which uses the UITableViewDelegate and UITableViewDataSource. I have created UITableView
I have a UIViewController subclass that accesses self.navigationController in viewDidLoad:. Depending on where it
In my UIViewController subclass should I initialize the NSArray of data for the UIPickerView
I have a UIViewController . Within that is a UITableView which is drawn at
I have an UIViewController which contains a UITableView (subclassed) and another UIView (subclassed). They

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.