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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T00:10:55+00:00 2026-06-19T00:10:55+00:00

I have a storyboard that has a ViewController DefaultViewController which is neither a UITabBarController

  • 0

I have a storyboard that has a ViewController DefaultViewController which is neither a UITabBarController nor a ‘UINavigationController`. It decides whether the upcoming controller should be a registration screen or home screen.

I have two segues originating from it, one pointing to UINavigationController' that does registration while other moves to 'UITabBarController that is the default home screen.

The DefaultViewController calls does following in ViewDidAppear: method

NSString *theController = nil;
if ([AppState sharedAppState].currentUserState == Registered) {
    theController = @"HomeSegue";
} else {
    theController = @"RegSegue";
}

[self performSegueWithIdentifier:theController sender:self];

The segue is performed well on iOS Simulator 5.1.1 as well as 6.0. However, nothing happens when I run the code on iPhone with iOS 5.1.1 or iPhone with iOS 6.0. The view stays with DefaultViewControllers view.

EDIT
I created whole new project and works fine there but when I copied old storyboard contents and classes, issue re-appears.. !!

** EDIT 2 **
I removed the RootViewController associated with UINavigationController and added a simple UIViewController with a label on it and it works fine. If I add my Custom RegistrationController as root controller, the segue is not performed.

P.S. My custom RegistrationController adds another controller as childViewController in it.

  • 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-19T00:10:56+00:00Added an answer on June 19, 2026 at 12:10 am

    Strange .. Very Very Strage.. But that is how I got it to work.

    The RegistrationController that was part of navigationController, created an instance of RegInfoController which was added as both as it’s subview as well as child controller.

    I simply overrid the awakeFromNib method of that childController and it started working.

    To Confirm the scenario, I removed the method and it stopped working..

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

Sidebar

Related Questions

I currently have a popover DatePickerViewController that I created in storyboard which has a
I have an app that has a Navigation Controller built from storyboard. Each view
I am using StoryBoards in Monotouch and have a ViewController which has been designated
I have a tableview in a ViewController defined in storyboard. the tableview has prototype
I have a storyboard iOS app that has a number of views I push
I have a ViewController that has a couple of IBOutlet properties defined for UITextView.
I have an app that has two viewcontrollers Viewcontroller and OptionsViewController. Viewcontroller is the
I have a huge crazy scene in my story board that has 36 different
I have a storyboard that runs forever with autoreverse for lets say 10 seconds.
I have a custom UITableViewCell that I defined in a storyboard. I added a

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.