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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:55:11+00:00 2026-05-27T15:55:11+00:00

I have a viewcontroller that is presented modally. [self presentModalViewController:ViewControllerA animated:YES]; Within this ViewControllerA

  • 0

I have a viewcontroller that is presented modally.

[self presentModalViewController:ViewControllerA animated:YES];

Within this ViewControllerA I’ve got a table view and when the user clicks on a cell another ViewControllerB should be pushed on top of the current one.

- (void)tableView:(UITableView *)tv didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    [self.navigationController pushViewController:ViewControllerB animated:YES];

The problem: I cannot push anything because it is push from a modally presented viewconrtroller. Is there some way to solve my problem?

  • 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-27T15:55:11+00:00Added an answer on May 27, 2026 at 3:55 pm

    You can push ViewControllerB as another modal view.

    But if you want to use the navigational controller, here is a section from Apple’s doc:

    You can present UINavigationController objects modally in the same way that you would present a custom view controller. (In rare cases, you could even present a tab bar controller.)

    When presenting a navigation controller modally, you always present the UINavigationController object itself, rather than presenting any of the view controllers on its navigation stack. However, individual view controllers on the navigation stack may themselves present other view controllers modally, including other navigation controllers.

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

Sidebar

Related Questions

I have a view controller that was presented using [self presentModalViewController:myVC animated:YES]; this VC
I have a view controller that gets presented modally and changes some data that
I have a viewController (Planner) that loads two view controllers (InfoEditor and MonthlyPlan) when
I have presented the viewController which contains a navigation controller whose view is loaded
I need to display a view modally. The viewcontroller that needs to be displayed
How do I position this ViewController over the detail view modally? I want it
I have a Navigation Controller that is presented modally with 4 views in the
I'm working on a view controller that can be presented modally or pushed into
We have a modal view that contains a Table view that contains UITableViewCells used
I have a ViewController that has its own NIB. I would like to embed

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.