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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:41:35+00:00 2026-06-01T09:41:35+00:00

I can pop a view controller from a UINavigationController ‘s stack by calling [self.navigationController

  • 0

I can pop a view controller from a UINavigationController‘s stack by calling [self.navigationController popViewControllerAnimated:YES]; either from the parent view controller that instantiated it, or from the child view controller itself. Which way is preferable?

  • 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-06-01T09:41:36+00:00Added an answer on June 1, 2026 at 9:41 am

    I suppose the answer is “whatever makes the most sense”; as you said, you can call popViewControllerAnimated: from the parent, child, or even some other class that holds a reference to the navigation controller.

    For most apps, the child view will contain a “back” or “done” button or some other action that then leads to it being popped. Generally, I would say this is the preferable behaviour: the child view controller pops itself.

    Otherwise, the child would have to call out to the parent (via a delegate or something) to say “pop!” which would then call popViewControllerAnimated:. This feels a little too convoluted for such a simple action.

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

Sidebar

Related Questions

Ui alert view can pop up multiple times during my one view controller. I
I want to push a view controller onto the stack, then pop the first
I have to pop to HomeScreenViewController from current view controller after clicking on custom
I have a UINavigationController with a root view controller and then I push a
I want to remove a viewController from UINavigationController's stack. is it possible? I found
I have a view controller that i'm trying to push onto the navigation stack.
When I push a certain view controller, then go pop it and then repeat
I have a list of items in one view controller. I can select an
I have a view (viewB) that is pushed in using the navigation controller from
How you can add a child ViewController into Master View Controller ? I have

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.