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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:52:49+00:00 2026-06-13T23:52:49+00:00

I am manually calling a push segue which works great. The new TableView scene

  • 0

I am manually calling a push segue which works great. The new TableView scene comes up, the custom nav buttons in the nav controller work perfect.

However, I want it to be a modal segue instead. So, I changed the type to Modal and embedded the new scene in a Navigation Controller. The new scene comes up, however the scene won’t go away when the cancel button is tapped.

Any ideas why? Thanks.

  • 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-13T23:52:50+00:00Added an answer on June 13, 2026 at 11:52 pm

    A Push segue adds a new view controller to the navigation stack in which the presenting view controller is also contained. That’s why the navigation bar works in that case.

    A Modal segue doesn’t add the view controller to the navigation stack, it adds it as a child of the presenting view controller, so in this case there is no defined navigation.

    If you want your nav bar to work on the modally presented controller you are going to have to wire up the actions manually (e.g.: make the “Back” button dismiss the modally presented controller).

    Also, as pointed out by @Edwin Iskandar, make sure you call the proper dismiss actions on the view controller, meaning: popViewControllerAnimated won’t work on a modally presented view controller, instead you should call dismissModalViewControllerAnimated

    P.S.: Note that dismissModalViewControllerAnimated is deprecated in favor of dismissViewControllerAnimated:(BOOL) completion:^(void)completion for iOS 6

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

Sidebar

Related Questions

In my Javascript I am manually calling __doPostBack('myUpdatePanelId','mycustomeventarg') It works fine except the EventArgs
I have a spring application which is not calling bean destroy methods on shutdown.
I am manually calling .click() on a button on a page in my jquery/javascript
I am manually calling a stored procedure using an Entity Framework EntityConnection like so:
Is it possible to dispatch (send) events manually by calling [[GANTracker sharedTracker] dispatch] even
I am using a lightbox called nyromodal and I am calling it manually on
I have an initial 'parent menu' view controller with a 'photos' button (more buttons
Manually built: [btnRun addTarget:self action:@selector(RunApp:) forControlEvents:UIControlEventTouchUpOutside]; Programmatically built: something of the following like ??
Does it need manually close InputStream (bean.getContentAsStream()) in java after pass to Spring JDBC
Do we need to manually import in main project the user location graphical assets

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.