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 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

First of all I'd like to state that, despite the title, this question is
Disclaimer Despite the title, this is a genuine question, not an attempt at Emacs/Vi
Hopefully, despite similar question titles, this isn't a duplicate issue. I've installed ImageMagick-6.7.5-6-Q16-windows-dll.exe .
Despite the title, I fully expect this to be a user error. I've done
I tried looking at this post which has an almost identical title but despite
This one is interesting to me - despite the almost inane title. I have
Despite working on EE for about 3 weeks now, believe it or not, this
This is a problem i wasn't able to solve despite extensive searches on the
I have a piece of code here that does not work despite me using
Basically, what the title says. I have several properties that combine together to really

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.