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

  • Home
  • SEARCH
  • 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 860563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:50:09+00:00 2026-05-15T08:50:09+00:00

Apologies if this is a simple question but googling hasn’t been able to help

  • 0

Apologies if this is a simple question but googling hasn’t been able to help me.
I am planning to display 3 arrays of data in a Table View that has each array in a different section in the Table View.

Can any one provide me with a link to a good tutorial or sample code that could help me with this?

Once again I apologize if this is a simple question and answer but I am a newbie to Xcode and working on my first serious project for it.

Thanks!

  • 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-15T08:50:10+00:00Added an answer on May 15, 2026 at 8:50 am

    In your TableViewController implement:

    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
    {
        return 3;
    }
    
    
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section 
    {
     return [[self getDataArray:section]count];//implement getDataArray
    }
    
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 
    {
    
        static NSString *CellIdentifier = @"Cell";
    
        NSObject *data = [[self getDataArray:indexPath.section]objectAt:indexPath.row];//implement getDataArray
    
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        if (cell == nil) 
        {
            cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
             //add Code to populate cell with data
        }
        return cell;
    }
    

    Other methods to probably implement:

    - (UIView *)tableView: (UITableView *)tableView viewForHeaderInSection: (NSInteger)section
    - (CGFloat)tableView:(UITableView *)aTableView heightForHeaderInSection:(NSInteger)section
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to SSRS, so I apologize if this question is too simple: I
I am just checking out F#, so apologies if this is a silly question,
Final question for the night. And apologies for the complete noobness of this. I
If this question has already been asked I appologies, please point me in the
I am just getting started with IoC containers so apologies if this is a
I'm a student of web development (and college), so my apologies if this comes
Greetings, Apologies in advance that I have not researched this toughly enough to answer
I apologise in advance if this question isn't very specific. Would it be possible
I apologize if this is slightly off-topic. I'm hoping to find a software-as-a-service CRM
First off, I apologize if this doesn't make sense. I'm new to XHTML, CSS

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.