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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:34:09+00:00 2026-05-23T17:34:09+00:00

I am trying to make an app that will display a bunch of different

  • 0

I am trying to make an app that will display a bunch of different people’s names and address in different cells of a UITableView. First I’m just trying to get the hand of adding text to the cells, and it’s not really working. I have the following code, where myTableViewController is just a subclass of UITableViewController that loads in its view from a nib (without any drastic customizations):

    myTableViewController * tvc = [[myTableViewController alloc] initWithStyle:UITableViewStylePlain];

    NSIndexPath *path1 =[NSIndexPath indexPathForRow:0 inSection:0];
    NSIndexPath *path2 =[NSIndexPath indexPathForRow:1 inSection:0];

    [self presentModalViewController:tvc animated:YES];

    UITableViewCell * cell1 = [tvc.tableView cellForRowAtIndexPath:path1];
    UITableViewCell * cell2 = [tvc.tableView cellForRowAtIndexPath:path2];

    cell1.textLabel.text = @"test";
    cell2.textLabel.text = @"test2";

I was expecting to see a tableView animate onto the screen, followed by the first and second cells being filled with the text “test” and “test2” respectively. What I get is a blank tableview animating onto the screen. Then if I scroll down so that the top cell is hidden and scroll back up so that the top cell is again visible, the top cell will now have the text “test” in it. But the second cell down never shows any text, just the top one.

Can someone please point me in the right direction? I also would like to have the text in the tableview BEFORE it loads onto the screen, but it looks like the cells don’t exist unless they are being displayed. Please help me.

  • 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-23T17:34:09+00:00Added an answer on May 23, 2026 at 5:34 pm

    Populating a table view takes the form of a data-source pattern, where the table view calls your data source object for data to put in individual cells.

    Try reading through the Table View Programming Guide.

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

Sidebar

Related Questions

I am trying to make an app that will pass data between two servers
Hey there, i am trying to make a little app that will serve multiple
I'm trying to make a web app that will read in a server-side CSV
I'm trying to make an app on an Android device that will control an
I'm trying to make an Android application that will display a map of a
I'm trying to make a Windows Forms app that will be able to backup
I'm trying to make a simple app that will ping a uri and tell
I'm at the moment trying to make a very simple app that will greet
I was trying to make an app which has a component that will make
I was wondering : I'm trying to make an app that as a Listview,

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.