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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:32:10+00:00 2026-05-31T00:32:10+00:00

My app was working great and then client asked to put a login screen

  • 0

My app was working great and then client asked to put a login screen on.

I have a TabBarController with 4 tabs and I assign it the window as such in my app delegate.

[self.window addSubview:self.tabBarController.view];

Next, I had to put a login screen (view Controller) so I did it and called it like this

[self.tabBarController  presentModalViewController:passwordController animated:NO];

and then dismiss it when the login is correct.

Now, when I put the app in the background each time I get my login screen (YEAH) with the exception of one. One of my tab’s calls a navigation controller (well MasterViewController here is actually a view controller) and I call it like this

MasterViewController *masterViewController = [[MasterViewController alloc] init];

//TRYING TO GET IT TO STAY WITH TAB CONTROLLER
UINavigationController *navController = [[[UINavigationController alloc]initWithRootViewController:masterViewController] autorelease];

[self presentModalViewController:navController animated:YES];

and dismiss it when I need to. From there I am doing a bunch of core data stuff and I wanted my tab bar to disappear as I wanted the user to add/edit order in the correct order and not jump around to another place in the app using the tab bar (and then data being out of sync).

When I need to “drill down” to the next level I use
[self.navigationController pushViewController:eventController animated:YES]; and pop when I need to dismiss it.

So my question is this…I want the login screen to be presented on top whenever I return from the background on all screens.

I am sure the problem is the creation of the NavigationViewController not being part of that tabBarController

I did not include more code because it’s all core data stuff or view controllers and all works well.

I am sure I am doing something terribly wrong and just don’t understand (and I’ve built the entire app using advice on here so perhaps I followed bad advice).

  • 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-31T00:32:11+00:00Added an answer on May 31, 2026 at 12:32 am

    I solved the problem like this..I created a navigation controller for each of the tabs that needed to “drill down” and had those navigation controllers initialized using the tabbarcontroller. Then in the app delegate when the appfinishedLaunching I called the security controller and it works everywhere. Just wanted to post for those who might be interested.

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

Sidebar

Related Questions

For an app I'm working on, I'd like to have a control panel window
The app I'm working on has 4 tabs, 3 of which share many features,
In an app I'm working on, I have a plain style UITableView that can
I'm working on my first iPhone app and have been able to get most
I'm new to python, django and google app engine. All great tools and have
I have an Open Source app and I have it working on Windows, Linux
So I'm working on my app and everything is great. All tests pass, app
Just finished up my first mvc4 app. Everything is working great until I deploy
Whilst trying to get our app working in Firefox (I'm a big proponent of
I'm trying to get a web app working based on the S#arp Architecture. At

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.