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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:31:36+00:00 2026-05-27T14:31:36+00:00

Someone help me understand the new storyboard in Xcode 4.2? I know how to

  • 0

Someone help me understand the new storyboard in Xcode 4.2?
I know how to code to load another view controller but in the storyboard mode there are differences..

I also know there are a lot of tutorials about the navigationcontrollers, but I just want to switch UIViewControllers on storyboard.

With the normal .xib files I can switch views with this code from the RootViewController..

SecondViewController *Second = [[SecondViewController alloc] initWithNibName:nil bundle:nil];
[self presentModalViewController:Second animated:YES];

When I use it in the storyboard mode it just loads the UIAlertView on the SecondViewController.m and the screen appears to be black?

Any help would be appreciated, also attached the Xcode project…

Here is the zip..

-x- Jay Ruben

  • 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-27T14:31:36+00:00Added an answer on May 27, 2026 at 2:31 pm

    you can do this:

    SecondViewController *second= [self.storyboard instantiateViewControllerWithIdentifier:@"second"];
    [self presentModalViewController:second animated:YES];
    

    Don’t forget to give the second view controller an identifier like “second”.

    Otherwise you can connect both view controllers with a segue. Hold CTRL an drag from the first to the second view Controller. Now you can choose “push” and give the segue a name to switch the View programmatically like this:

    [self performSegueWithIdentifier:@"second" sender:self];
    

    Push Segues will only work if a navigation controller is set.

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

Sidebar

Related Questions

Can someone help me understand this piece of code: char *line = new char[2048];
I'm new to Flex. Could someone help me understand how Flex generally works with
can someone help me understand this because it's working in as3 but not so
Can someone help explain the following bit of code. richTextBox1.Font = new Font(richTextBox1.Font.FontFamily, richTextBox1.Font.Size,
Could someone please help me to understand why the following block of code keeps
Could someone help me understand the primitive accessors with this example : i don't
Please could someone help me understand why the div.fl element shown in Developer Tools
(Specifically, I'm using Backbone Model events) Can someone help me understand how javascript events
Could someone help me translate the following pseudo-code into code understood by Helicon Tech's
Eclipse crashed and won't restart. Can someone help me understand what the problem is?

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.