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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:22:01+00:00 2026-05-22T01:22:01+00:00

I currently have an application that does the the following: S: Loads a view

  • 0

I currently have an application that does the the following:

S: Loads a view as a login screen to start with.

a: If login is successful I add a terms and conditions screen as a subview

b: If not successful I add a sign up form as a subview

F: Then I load the main part of my app on success of either of the a or b which is the part of the app where there is a navigation controller and a tab bar controller. This is set up in MainWindow.xib

S, a and b also have Nav bars but no navigation controllers as I didn’t think I would need navigation control on the login screens.

However it turns out I do, I want to be able to have back navigation from both a and b to the initial login screen.

I have tried several ways of doing this including trying the following answers:

How to add navigation controller in View Based Application in iPhone?

How do you properly set up a secondary view to support a navigation Controller on the iPhone?

how to add navigation controller programatically?

But none of them work for me, they display the new Navigation controller over the login screen and dont load the a or b screens.

I’m guessing this is because I am adding them as subviews to my loginView and this is not the correct way to do this? My code is as follows:

 if(self.tcSubViewController == nil){

        TCSubViewController *_tcSubViewController = [[TCSubViewController alloc] initWithNibName:@"T&CView" bundle:[NSBundle mainBundle]];

        self.tcSubViewController = _tcSubViewController;

        [_tcSubViewController release];

    }
 [self.view addSubview:[tcSubViewController view]];

I’m guessing there’s a fundamental flaw in the way my Login flows? I should be able to completely remove the LoginView and then display the Terms and conditions view without having to add it as subview, shouldn’t I?

  • 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-22T01:22:02+00:00Added an answer on May 22, 2026 at 1:22 am

    You need to dismiss the navigation controller to go back to.
    To dismiss modal view:

    1.Easy way: In your modal view in some method that you call to dismiss just add:

    [self.navigationController dismissModalViewControllerAnimated:YES];

    2.More complex way: Implement and delegate protocol on your modal view and make the view controller that presents the modal view the delegate of it. And in the delegate method dismiss the modal view. I do this way when I need to send data from modal view to the controller that present it.

    Reference to this post

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

Sidebar

Related Questions

I currently have an application that gets hit with over 20,000 users daily and
Currently I have an application that receives an uploaded file from my web application.
I currently have an MS Access application that connects to a PostgreSQL database via
We currently have a quite complex business application that contains a huge lot of
I have an application that is currently running against a 32-bit SQL Server 2005
I have a web application that currently sends emails. At the time my web
I have a web application that's branded according to the user that's currently logged
I currently have some code that will produce a crash dump when my application
I currently have a database that gets updated from a legacy application. I'd like
I have a Windows GUI application that's using the Qt framework (currently version 3.3.5,

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.