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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:32:03+00:00 2026-05-27T06:32:03+00:00

I am having trouble displaying data in my table. Preamble: TableView placed on the

  • 0

I am having trouble displaying data in my table.

Preamble:

  • TableView placed on the storyboard
  • TableView linked to a @property (strong, nonatomic) IBOutlet UITableView *myTable;
  • .m file contains both required methods and content to be displayed
  • Controller conforms to <UITableViewDataSource>

I suspect i am not setting up the dataSource in the right place. Where in a UIViewController should it be set, when initialization happens from the StoryBoard? I placed it in the -(void)viewWillAppear:(BOOL)animated, however DataSource was not set. Same goes for init.

[myTable setDataSource:self];

If the view is loaded with the help of storyboard (initialization does not happen as part of init method) .. where should table’s dataSource be set?

  • 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-27T06:32:03+00:00Added an answer on May 27, 2026 at 6:32 am

    The controller’s -viewDidLoad method would be a good option. That method is meant to perform any initialization that has to be deferred until the view is loaded.

    I’m not sure what you mean by ‘did not take.’ Is the table’s data source not set to your controller?

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

Sidebar

Related Questions

I'm having trouble with a div table control I wrote displaying correctly in IE.
I'm having trouble displaying a multi-line UILabel in a custom UITableView cell. I'm currently
I'm having trouble displaying the contents of a table which contains nested tables (n-deep).
I am having trouble displaying a raw YUV file that it is in NV12
I am having trouble displaying Date s in the format I want in my
I'm having trouble with displaying image from db. I think that method for saving
I'm having trouble filtering hierarchical data that's being displayed in nested xaml templates. I've
I am having trouble displaying the jQuery datepicker as shown here: http://jqueryui.com/demos/datepicker/ I believe
I'm having trouble displaying the only date part of a DateTime into a textbox
I am having trouble displaying a webview. I have a webview inside a custom

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.