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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:05:17+00:00 2026-05-26T19:05:17+00:00

I know that I should use this when I get an interruption in the

  • 0

I know that I should use this when I get an interruption in the app and it comes back:

- (void)applicationDidBecomeActive:(UIApplication *)application

But how would I, when the app becomes active again, dismiss any previously opened view controllers and present the main view controller?

  • 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-26T19:05:18+00:00Added an answer on May 26, 2026 at 7:05 pm

    This may depend on your architecture. If you use an UINavigationController to manage your views, you could call popToRootViewController on it to push everything else off the navigation stack and return to the root view (you’d have to maintain a property or something similar in your application delegate). If you have any modal views open, you could maintain a property in your application delegate that contains the currently active modal dialogue (if any) which would be dismissed.

    Note though that applicationDidBecomeActive: is also called when the application was put into the background (e.g. because the user went for another app in the meantime) and the user returns to your app (as well as on first launch), so returning to the root view may be something different than the user expects.

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

Sidebar

Related Questions

OK,I know that I should use a DOM parser, but this is to stub
I know that a command line application should return 0 on success. But are
I know that questions should have definitive answers, but I'm legitimately curious to get
I know that I should put all the html elements in body tag, but
this is my first question here :) I know that I should not check
I know that the reminder application should display a badge or sound or kind
I know that we should only create repositories for Aggregate Roots and not for
I know that I should have schema of a table before calling NewRow method
I know that most links should be left up to the end-user to decide
I know that c++ code should be compiled and linked by g++, not gcc.

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.