In my login logic I have a “AuthenticationViewController” (here the application checks if the user is already logged in). I also use storyboard and all views are based on push segues. And so it looks:
------ AccountViewController
|
--> AuthenticationViewController +
|
------ LoginViewController
Now when I use the UITabbarController and press twice on the tabbar icon “account”, the application pops back to the AuthenticationViewController and then to the accountView or to the loginView. I know it’s a “blemish” but how can I achieve that when I press twice at the account-icon, the AuthenticationViewController does not get shown? Or do I have a wrong logic?
EDIT
This is how my push-function gets initialized programmatically in the authenticationViewController:
// Delegate to AccountViewController if Data (Username, Password) is correct
if ([strResult isEqualToString:@"1"]) {
AccountViewController *AVC = [self.storyboard instantiateViewControllerWithIdentifier:@"AccountView"];
[self.navigationController pushViewController:AVC animated:NO];
// [self performSegueWithIdentifier:@"authAccountSegue" sender:self];
}
else {
LoginViewController *LVC = [self.storyboard instantiateViewControllerWithIdentifier:@"LoginView"];
[self.navigationController pushViewController:LVC animated:NO];
}


Ok, solved this problem on my own: SUBVIEWS are the key 🙂