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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:44:14+00:00 2026-05-18T06:44:14+00:00

Despite the title of this question, I am well aware that UIViewControllers cannot be

  • 0

Despite the title of this question, I am well aware that UIViewControllers cannot be placed inside UIViews.

Per Apple’s documentation, UIViewControllers control the full screen in iPhone apps. However, on the iPad, they can also be used to control the contents of popover and split views as well as the full screen.

In my design, a number of very complex views, each with its own UIViewController, will be swapped in and out in an iPhone-sized rectangle in the center of the screen. This would be trivial if I were to use a popover, but I don’t want the arrow or the black border that comes with it.

I have thought of two possibilities for dealing with this situation:

  • Place the view controllers in a new UIWindow
  • Use controller classes which do not inherit from UIViewController for those views

Which of these methods is least likely to cause future headaches? Please let me know if there is a better way to do this that I have not thought of.

  • 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-18T06:44:15+00:00Added an answer on May 18, 2026 at 6:44 am

    I use controller classes that do not inherit from UIViewController. The inability to nest actual view controllers arbitrarily in your UI hierarchy is an unfortunate unfairness in the SDK, but I have found that even having faux-controllers of real complexity are reasonable to manage. I just plumb through the critical messages from the real root controller as necessary, and structure the code in a similar way as if it were a real view controller. This is basically Apple’s recommendation, also. (Can’t find the doc reference at the moment.)

    If you have LOTS of sub-screen manageable views like this, you could probably build a nicely flexible MyViewController class that inherits from NSObject, and then a MyBaseViewController that inherits from UIViewController that knows how to spawn MyViewControllers and sets up all the messaging appropriately for you. (I haven’t needed this level of abstraction yet myself.)

    Using sub-screen-sized UIWindows is not a standard solution, and I’d be wary of it. Similarly, don’t try to just bash ahead and use UIViewControllers anyways. You’ll find that if you do so, they’ll behave sometimes and misbehave sometimes and you’ll waste a lot of time sorting out that fragile interaction.

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

Sidebar

Related Questions

This one is interesting to me - despite the almost inane title. I have
Despite an earlier question ( asked here ), our project is constrained to using
Despite this being one of the best error messages I've ever seen (second only
I know very little about JavaScript but despite this I'm trying to cobble something
This is related to my previous question here . I want 4 divs (absolute
I want this to be set up so that when a certain body of
This is not a duplicate of this post although the title is very similar.
Despite the fact that my JDO query contains TWO declareParameters statements, the code below
This has been working for the past three weeks that I've been developing this
Despite primarily being a windows user, I am a huge fan of rsync. Now,

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.