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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:40:01+00:00 2026-05-31T16:40:01+00:00

I don’t like the UINavigationController because the tree/drill-down navigation style does not work in

  • 0

I don’t like the UINavigationController because the tree/drill-down navigation style does not work in all situations. What I’m looking for is a sort of UISwitchController where a view controller can tell the UISwitchController what the next view is and the data to pass to it. Then the current view closes itself and the UISwitchController would handle opening the next view and passing in the data from the previous view. The UISwitchController could remember the name/type of the last view opened so the current view could tell who opened it (also allows the UISwitchController to handle a Back request by the current view without the current view specifying the name of the view that opened it). A view could also flag the UISwitchController to keep it in memory and not to release it after it closes so the view controller is essential reused for each call to that view. Is there such an framework?

  • 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-31T16:40:02+00:00Added an answer on May 31, 2026 at 4:40 pm

    So basically you are talking of a UIViewController that holds several UIView(Controller)s and handles the presentation.

    In iOS < 5 I would just use a UIViewController, that adds views to another view, that is displayed.

    in iOS 5+ you should familiarize yourself with UIViewController Containment, that is actually a pattern of how to use UIViewControllers with other child view controllers.

    form the UIViewController doc

    Implementing a Container View Controller

    In iOS 5.0 and later, custom UIViewController subclasses can also act
    as container view controllers. A container view controller manages the
    presentation of content of other view controllers it owns, also known
    as its child view controllers. A child’s view can be presented as-is
    or in conjunction with views owned by the container view controller.

    Your container view controller subclass should declare a public
    interface to associate its children. The nature of these methods is up
    to you and depends on the semantics of the container you are creating.
    You need to decide how many children can be displayed by your view
    controller at once, when those children are displayed, and where they
    appear in your view controller’s view hierarchy. Your view controller
    class defines what relationships, if any, are shared by the children.
    By establishing a clean public interface for your container, you
    ensure that children use its capabilities logically, without accessing
    too many private details about how your container implements the
    behavior.

    • Session 102 – Implementing UIViewController Containment — WWDC 2011
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Don't know why but font is not displaying.Please help. CSS(in css folder): style.css: @font-face
Don't know a whole lot about streams. Why does the first version work using
Don't want to sort the entries. using this does not preserve the order as
Don't dismiss this as a newbie question! It's not, I'm not, I've tried everything,
Don't know why people do not practice AJAX implementation for authentication systems. Is it
I don't know if this question is trivial or not. But after a couple
Don't quite understand why this copy constructor is not invoked when I build with
Don't worry, I'm not going to ask that question, yet again... I am wanting
I don't know why this double json response are not successful: [{first_content:content,...}][{second_content:content,...}] So i
don't understand: in my controller: @json = User.all.to_gmaps4rails do |user| \Title\: \#{user.email}\ end in

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.