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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:07:08+00:00 2026-05-26T18:07:08+00:00

i need to create an iPad app where i have to show multiple tables(no

  • 0

i need to create an iPad app where i have to show multiple tables(no grid, just 1 collumn with multiple rows) in one single view. this have to be done programmatically because in a back-office someone is going to set that number of tables.

the view will have a scroll so i can see all of them.

Can this be done right ?

can someone provide my some code or link to some tutorial about how to create a N number of tables in one view positioning them whenever i want.

  • 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-26T18:07:08+00:00Added an answer on May 26, 2026 at 6:07 pm

    This absolutely can be done.

    Probably the easiest way you can do this is to subclass UITableView, so that each TableView you create can have a unique handler for its delegate and datasource, ala:

    DynamicTableView.h

    @interface DynamicTableView : UITableView <UITableViewDelegate, UITableViewDataSource> {
        NSMutableArray *items;
    }
    
    @end
    

    DynamicTableView.m

    #import "DynamicTableView.h"
    
    @implementation DynamicTableView
    
    -(id) initWithFrame:(CGRect)frame style:(UITableViewStyle)style {
        if (self == [super initWithFrame:frame style:style]) {
            items = [[NSMutableArray alloc] initWithObjects:[NSString stringWithFormat:@"%i", [NSDate timeIntervalSinceReferenceDate]],
                     [NSString stringWithFormat:@"%i", [NSDate timeIntervalSinceReferenceDate]], nil];
        }
    
        return self;
    }
    
    -(void) dealloc {
        [items release];
    
        [super dealloc];
    }
    
    -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
        return [items count];
    }
    
    -(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
        return 1;
    }
    
    -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
        static NSString *CellIdentifier = @"Cell";
    
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        if (cell == nil) {
            cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
        }
    
        cell.textLabel.text = [items objectAtIndex:indexPath.row];
    
        return cell;
    }
    
    @end
    

    This is a very simple implementation, that when it’s initialized fills its datasource (the items array) with two timestamps. Using it is as simple as something like:

    for (int i = 0; i < 4; i++) {
        DynamicTableView *table = [[[DynamicTableView alloc] initWithFrame:CGRectMake(10, (i * 100) + 10, 200, 50) style:UITableViewStylePlain] autorelease];
        [table setDelegate:table];
        [table setDataSource:table];
    
        [self.view addSubview:table];
    }
    

    Modify the DynamicTableView to accept whatever data source you want and how it is displayed.

    Hope that helps!

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

Sidebar

Related Questions

I have an iPad app with split view controller. I want to programmaticaly create
I have used the template from ipad to create a splitView app but the
I have created split view based ipad app, where master view is table view
I just noticed a rather severe bug in my iPhone/iPad app: I have a
I have dynamically created WrapPanel (_wp) with several Borders. And I need create handler
I have a iPhone app and want to develop iPad app with the same
I have a universal iOS app with a custom view that has three buttons,
We need to have some kind of app that we can deploy to an
In an iPad app I'm developing, I need to put the network handling on
I'm trying to create a iPad-type of app (say using a Mac App), except

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.