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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:28:28+00:00 2026-06-01T12:28:28+00:00

I am attempting to build an iphone app with two tables, side-by-side, where both

  • 0

I am attempting to build an iphone app with two tables, side-by-side, where both tables are always visible AND individually scrollable. Is this possible?

I have read a number of answers to similar questions on this site where people suggest using ‘two UITableViewControllers, side by side’

Sounds like exactly what I need, but I can not find any examples.

My main question is: how do you actually get two UITableViewControllers on the same screen in IB?

Alternatively, is the correct way to do this by having two TableViews side-by-side within a single UITableViewController?

Any help would be much appreciated

  • 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-06-01T12:28:30+00:00Added an answer on June 1, 2026 at 12:28 pm

    Although I took initial guidance from @Aadhira’s answer above, I thought I’d completely answer my question for anyone else who might find this useful (I got it to work by the way)

    I created a storyboard with the following hierarchy of views/view controllers

    UITableViewController Controller
    – UITableView ViewContainer
    — UITableView Left
    — UITableView Left

    I created the table view ‘ViewContainer’ to ‘contain’ the two table views (Left and Right) which I wanted to draw. The reason I felt it was easier to do it this way is because there was no other way to resize the Left and Right table views in IB so that they only take up half of the screen widht. Whenever I I put them directly inside the table view controller Controller, they would take up the full widht (I guess I could have controlled their width programatically). Putting them inside the table view ViewContainer allowed me to resize them.

    I made Controller the delegate and data source for Left and Right.
    Then, inside Controller, I had to make sure that I had some code to identify which table (Left or Right) is being drawn. ViewContainer is largely ignored and so far I am not using it

    I added the following code to numberOfSectionsInTableView, numberOfRowsInSection and cellForRowAtIndexPath

     switch (tableView.tag) {
        case 100:   //the requesting object is the Left TableView
        {
            //perform functions specific to Left;         
        }
            break;
        case 200:   //the requesting object is the Right TableView
        {
            //perform functions specific to Right;         
        }
            break;    
        default:
            //error handling code
            break;
    }
    

    I set the tags for table views Left and Right to 100 and 200 respectively. This allowed me to populate Left and Right correctly (they contain different objects)

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

Sidebar

Related Questions

I am attempting to build an FSM to control a timer in (iphone sdk)
I'm attempting to build a Lunar Lander style game on the iPhone. I've got
While attempting to build a website, i have gone through many online tutorials. Thanks
I am attempting to build an ASP.NET MVC 4 web app, which is similar
I'm attempting to build a login page for my website. I have managed to
I am attempting to build a Ruby Gem following this tutorial, however I am
I'm attempting to build a tree, where each node can have an unspecified amount
Greetings! I'm attempting to build an iPhone application that makes use of an iOS4-only
I'm attempting to build a currency converter function in PHP. I have all my
I'm attempting to build my first universal iOS app using the default Xcode templates

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.