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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:46:44+00:00 2026-06-03T12:46:44+00:00

For security reasons I need the user to log in each time my app

  • 0

For security reasons I need the user to log in each time my app is opened. What I would like to do is when the app is about to close reset it to the initial view. I know from a view controller I can use the following code:

[[self navigationController] popToRootViewControllerAnimated:NO];

I’m not sure how to adapt that to work from the app delegate.

On the initial view I have it set to show the login modal on viewDidLoad. That seems to only fire the first time, and not in the app when using the back button, so I’m hoping I’m safe using this method to show the login screen.

For clarification, I understand I will do this in the app delegate, I’m looking for the specific bit of code I can use to tell the app to reset the views.

  • 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-03T12:46:46+00:00Added an answer on June 3, 2026 at 12:46 pm

    An easy solution to this could be to stop your app from running in the background. This would completely shut down your app when the user closes it.

    I believe to do this you just go to info.plist of your project and check “Application does not run in background” to YES.

    Good luck! Hope that helps.

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

Sidebar

Related Questions

I am using Spring Security 3.0.6. for modularity reasons, I would like to use
For some security reasons I need to change apk file before user can download
In one's server, file_get_contents is disabled for security reasons. I need to retrieve xml
Obviously there are security reasons to close a wireless network and it's not fun
There are many security reasons why one would want to drop an HTTP connection
Hi, I am creating an app with tabactivity . But for security reasons i
From security reasons, is it worth encrypting user emails before putting them into the
I need to evaluate user-entered arithmetic expressions like 2 * (3 + 4) in
My Grails app is using the Spring Security plugin. I need to login a
For security reasons (I'm a developer) I do not have command line access to

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.