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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:36:20+00:00 2026-05-22T18:36:20+00:00

How can we create 2 table views in a single view without using section

  • 0

How can we create 2 table views in a single view without using section TableViews..,
I just want to display two tableViews in the view screen.., Say.., I have dragged two UITableViews from the Interface Builder to my view screen.., and i connected the IBOutlet defined in interface file.., AFAIK, we need to define two methods in the implementation file.. i.e.., numberOfRows and numberOfSections.., But I am confused.., doing that will change the tableView property of both the tables…

EDITED:

I want to create a horizontal scroll view..,with 3 tableViews of size 320 X 200..,
What I did was dragged UIScrollView to the view in IB.., Then dragged 3 UITableViews into that scrollView.., What do I need to do next., to fill up the table contents ?

  • 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-22T18:36:21+00:00Added an answer on May 22, 2026 at 6:36 pm

    Table views are UIView. So you can add multiple table view as subview just like you can add multiple labels or buttons. However, if you want to use the same object as delegate for both table views then a little more work is needed. All the delegate methods are passed the table view for which the method has been called as the first parameter. You need to check that parameter to know for which table view the method is called. For example:

    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
        if (tableView == self.tableView1) {
            return [arrayForView1 count];
        }
    
        if (tableView == self.tableView2) {
            return [arrayForView2 count];
        }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I efficiently create a unique index on two fields in a table
In Oracle, I can re-create a view with a single statement, as shown here:
i'd like to stack two UITableViews in a single view. i can do this
can someone tell me why the following behavior occurs (Oracle 10.2): SQL> create table
I'm familiar with Sybase / SQL server, where I can create a temp. table
In SQL Server 2005, we can create similar tables in two different ways. We
I can create the following and reference it using area[0].states[0] area[0].cities[0] var area =
I want to create a model that doesn't map to a database table. Instead,
I'm trying to create an html table from database records. I want the table
I want to use partials in rails along with single-table inheritance. I currently have

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.