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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:46:41+00:00 2026-06-17T13:46:41+00:00

Finally made my api login to work but I just bumped into a huge

  • 0

Finally made my api login to work but I just bumped into a huge road block with redirecting to the main page after login. My storyboard looks like this

current storyboard

So I have all my processes on that submit button and after the validations pass I want to redirect to the Events page but it would always cache and would give me this exception:

Terminating app due to uncaught exception ‘NSGenericException’,
reason: ‘Could not find a navigation controller for segue
‘LoginSuccess’. Push segues can only be used when the source
controller is managed by an instance of UINavigationController.’

This is the line that pushes to the next page

if(user.isValid){
        // go to next page
        [self performSegueWithIdentifier:@"LoginSuccess" sender:self];
    }
    else{
            // else refresh current page
    }

Thanks guys!

  • 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-17T13:46:42+00:00Added an answer on June 17, 2026 at 1:46 pm

    Your login view controller should be embedded in a UINavigationController if you want to use a push segue on it.

    You should have something like this:

    -(initial view controller)-> [UINavigationController] -(embed)- LoginViewController -(push)-> EventsListViewController
    

    EDIT: (from comments) If you really want to use a push segue, you need to put it in a navigation controller; else, you may have to change the screens via code (by changing appDelegate.window.rootViewController), or via a modal segue. However, if you use a modal segue, you cannot show any other controllers using a modal segue. (You cannot show a controller modally if the current view controller has already been shown modally.)

    So far, I have only used the changing the rootViewController via code. If you embed the LoginViewController in the UINavigationController, you might have to handle the Back button as logout (when in EventsListViewController), or when popping view controllers in the navigation controller.

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

Sidebar

Related Questions

I am trying to get into iOS development and yesterday I finally made a
I have made small web-app in jsp with a start page with login and
I have finally made a production worthy app with play, and use the play
This morning I finally made my mind and decided to ask you for help.
So I've finally made a website that looks great in every major modern browser.
String a=(Yeahhhh) I have finally made it to the (top); Given above String, there
As you can guess from the title, the outlining with regions finally made me
Finally deployed my ruby on rails 3.2 app but when trying to open it
Finally figured it out thanks to One Mad Monkey, but forgot quotes on my
I finally figured out how to implement pg_search's multisearch feature. But I'm having trouble

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.