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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:02:29+00:00 2026-05-28T04:02:29+00:00

I have an Objective C – iPhone Application I am writing, and I think

  • 0

I have an Objective C – iPhone Application I am writing, and I think I may be confused on the lifecycle of the UITableView process. The issue is that in my application. I have a WebService I am calling. I parse the response with NSXML Parser and put the values I am looking for in an Array. I know up to this point the values are their, I can see it. But it looks like the call to call to display the cells happens before the Parser is parsing it, so it never shows up.

I have tried reloading the tableview, and difference points, but it never calls the

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section

or

-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath

what can I do and where to get these to be called after the NSXML Parser has parsed the XML and put it in an array.

What actually triggers the UITableView to go to the data source and display the cells.

  • 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-28T04:02:30+00:00Added an answer on May 28, 2026 at 4:02 am

    When the NSXML parser is finished you should call the UITableView reloadData method which will force a redraw of your tableview. Your view controller should implement the UITableViewDataSource protocol which will initialize the tableview based on the Array that you populated while parsing the XML.

    http://developer.apple.com/library/ios/#documentation/uikit/reference/UITableView_Class/Reference/Reference.html

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

Sidebar

Related Questions

I have an objective-c application for OS X that compares two sqlite DB's and
I have an Objective C application that reads data from an RSS feed using
I have an Objective-C/C++ application which uses functionality that is provided by a C++
I have some Objective-C code that looks like this: #define myVar 10 float f
I have the following Objective-c Function - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { NSUInteger
I have noticed that most Objective-C coders never use the self->ivar syntax when accessing
Objective Have a small magnifying glass icon that appears in the top right corner
I have an Objective-C method that formats a double to a currency NSString :
I have an Objective-C/Cocoa project that incorporates a static library. That static library has
Is it possible to have an objective-c application send and receive iChat messages without

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.