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

  • Home
  • SEARCH
  • 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 8547313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:14:23+00:00 2026-06-11T13:14:23+00:00

This is my Hierarchy Navigation Controller –> Login Controller View — > Register Controller

  • 0

This is my Hierarchy

Navigation Controller  --> Login Controller View --- > Register Controller View
                       --> My Small Internal LeaderBoard View

Now I am using segues (Push) to go to either LoginControllerView or LeaderBoardView

Once I am on LoginControllerView and then RegisterControllerView I am using this code

[self dismissViewControllerAnimated:YES completion:nil]

However instead of returning me to LoginControllerView it is returning me back to NavigationController.

How can I return to my LoginController

I am transitioning from Login to Register through PUSH segue and I have named the segue as “Register”

From Login To RegisterController I am using this code

[self PerformSegueWithIdentifier:@"Register" sender:Self]

However, I can see from RegisterView connection inspector that its viewController reference StoryBoard Segue is “Login” .. I am transitioning from Login to Register with Register Segue, How can my RegisterController has Login segue as reference?

  • 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-11T13:14:25+00:00Added an answer on June 11, 2026 at 1:14 pm

    You did not say how RegisterControllerView is being presented. If it is being pushed on the navigation controller stack, then why not call:

    [self.navigationController popViewControllerAnimated:YES];
    

    If you are doing something special, then you need to say what special thing you are doing.

    Also, note that if you find where a view controller is trying to dismiss itself, then you should at minimum revisit your design to see if that’s really the best thing to do. A view controller may not know how it was presented, so it may not know the best way to dismiss itself either.

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

Sidebar

Related Questions

My view hierarchy looks like this: tab bar -> navigation bar -> table view
I would like to have a view (Hierarchy structure) under Navigation Controller (the top
My app is using Storyboards. I want to post the hierarchy here: view Controller
i have this MainViewController, which is a controller for my table view. Whenever I
I have a simple navigation hierarchy: Controller 1 > Controller 2 > Controller 3
I have a view controller hierarchy and the top-most controller is displayed as a
I have View Controller with a (navigation controller) that can flip between 2 views
I am working on a navigation based application which involves LOGIN view. My approach
I have this code in my table view controller (and delegate): - (void)tableView:(UITableView *)tableView
I am using xcode 4.2. Here is my herarchy Navigation COntroller (No toolbars) ->

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.