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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:33:11+00:00 2026-05-30T11:33:11+00:00

Is that correct, when ViewController creates another ViewController inside its’ methods (let’s say viewDidLoad

  • 0

Is that correct, when ViewController creates another ViewController inside its’ methods (let’s say viewDidLoad or viewWillAppear)?

In my case – I have a view A, that contains several other views – B and C, which are quite complex by themselves, so special view controllers vcB and vcC were designed for them and these view controllers are created inside vcA view controller of view A.

Is this OK? What if, for example, vcA sets itself as a delegate for vcB. Which means, that vcB will retain vcA. In this case, to correctly release all objects, we need somewhere set vcB’s delegate to nil, but what is the good moment to do this? viewWillDisappear:, viewDidDisappear: or smth. else?

I’m sure it’s not the only case, where problems are rise up, so I’m looking for your opinions how to correctly design these kind of interactions between view controllers.

  • 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-30T11:33:12+00:00Added an answer on May 30, 2026 at 11:33 am

    I have witnessed a dogmatic adherence to the idea that only one view controller should be operating at one time. As for myself, I lean toward using more than one view controller at the same time if it simplifies the overall design (reduces complexity) and makes design management easier. As you can read in a recent response that I posted, it appears to me that Apple has moved in the same direction by providing support for custom content view controllers that allow you to operate multiple view controllers at the same time.

    The blog by Jonah Williams is worth reading, just to be aware of what you might have to deal with. But Frankly, I haven’t had any problem contradicting his advice. (That post is about a year old.)

    A key roll of the view controller is to hold the delegate methods of the view it is managing. The view really doesn’t care what object is acting as its delegate. So if you wanted a design that is more harmonious with the single-VC point-of-view, you can put the delegate methods into a subclassed NSObject and not call it a view controller. You will most likely have to create some of the methods that a UIViewController already has in it though. But then you don’t have to call it a view controller. Me, I just subclass a UIViewCcontroller.

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

Sidebar

Related Questions

Is it correct to say that typically user_dump_dest is on a local drive? If
I have a program that creates UIViewControllers in a UISplitView depending upon which row
I'm drawing a custom UIView that is sitting inside a xib whose ViewController is
I have an UIImageView object in one of my viewController view that is preloaded
Like in: u'Hello' My guess is that it indicates "Unicode", is that correct? If
Is it correct that the reveal applescript command is broken with iTunes 9? Works:
I'm new to Symfony. Is my understanding correct that the User class is actually
can i somehow compare two numbers in regex? i want regex that is correct
(1). When using C++ template, is it correct that the compiler (e.g. g++) will
My Visual Studio 2008 debugger is showing integers as hexadecimals, how to correct that?

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.