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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:50:33+00:00 2026-05-28T04:50:33+00:00

In my application mainviewcontroller is pushing modalviewcontroller by using this [navigationController pushViewController:_viewController animated:YES]; For

  • 0

In my application mainviewcontroller is pushing modalviewcontroller by using this

[navigationController pushViewController:_viewController animated:YES];

For going back to mainviewcontroller using popviewController

[self.navigationController popViewControllerAnimated:YES];

Now as per apple reference documentation delegate is used by the presented view controllers to notify the presenting view controller when it is ready to be dismissed.

But in my case i am not using presentviewController and dismissmodalviewcontroller. It means my done button cannot use delegate to navigate back to mainviewcontroller like this

 [delegate dismissModalView:self];

So what code i should write in donebutton method so that it uses

-(void) dismissModalView:(UIViewController *)viewController;
{

   [self.navigationController popViewControllerAnimated:YES];

 }

to navigate back to mainviewcontroller.

help will be appreciated.

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-05-28T04:50:33+00:00Added an answer on May 28, 2026 at 4:50 am

    Try this to go to the rootView, the first view on the stack:

     [self.navigationController popToRootViewControllerAnimated:YES];
    

    Or to specify a viewController:

     [self.navigationController popToViewController:YourViewController animated:YES];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a project using the View-Based Application template. In my mainViewController : -
In my MainViewController I am using this code: static NSBundle *bundle = nil; +(void)setLanguage:(NSString
Application has an auxiliary thread. This thread is not meant to run all the
Application is asp.net MVC. I want to put a textbox for date using mask.
Application : HTA (therefore IE) This is an application that uses SendKeys to populate
In my application one is mainviewcontroller which is subclass of uiTableviewcontroller holds data from
I recently started a project, using Apple's Utility Application example project. In the example
I am building an application where I am using CorePlot libraries to show graphs.
I am making an app using a utility application template. I am trying to
In Xcode, the Utility Application template makes a project with: MainView, MainViewController and FlipsideView,

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.