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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:24:35+00:00 2026-05-11T15:24:35+00:00

As someone who is fairly new to iPhone development, I’ve been trying to find

  • 0

As someone who is fairly new to iPhone development, I’ve been trying to find good design patterns for managing multiple subviews, specifically where the subviews need the same type of delegate methods to be defined.

For example, I have a view where I need to swap between 2 UITableViews based on user actions. Both UITableViews need a UITableViewControllerDelegate object defined to populate the rows, etc.

Do you more experienced iPhone devs find that overloading the main view controller as the delegate for both subviews is the right way to do things? Currently I have 2 objects defined that each act as a delegate for each UITableView to try to keep things more organized. It accomplishes what I need it to, but is this a good pattern to follow?

I would assume there are some best practices out there to avoid various pitfalls with memory management and fun things like that. Thanks in advance!

  • 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. 2026-05-11T15:24:35+00:00Added an answer on May 11, 2026 at 3:24 pm

    You can use views as containers to hold the elements like tables. So in the case you outline, you’d have one container view and swap UITableViews in and out of it…

    A good approach would be to have seperate view controllers for each table. Otherwise it just gets too messy trying to keep track of which data set you are supporting across the various table view delegate methods, and makes it harder to do lots of customization to one table that may not apply to another.

    The main thing to be aware of when using composed view controllers is the ‘self.navigationController’ and related calls will not return anything (since they are not really children of your navigation controller) so you’ll need to pass along that reference or otherwise handle that somewhat differently in the table view controllers.

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

Sidebar

Related Questions

Fairly straightforward question here, but I can't seem to find someone who has asked
As someone who comes from the world of Object Orientation, I find it rather
Ok someone who happens to be a good friend of mine is sending me
This question comes to you from someone who's been burned by SVN before and
As someone who's been stuck at the older versions of Delphi and upgraded to
For someone who’s been happily programming in C# for quite some time now and
For someone who has been using bash for years, what's the quickest way to
I'm fairly new to facebook development, but have experience with PHP and JavaScript. I've
This question is intended for someone who is in game development, possibly working in
First off, I'm new to web development. I am fairly comfortable with HTML/CSS, and

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.