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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:19:38+00:00 2026-06-15T20:19:38+00:00

I am new to IOS developing and recently started in Xcode 4.5. I saw

  • 0

I am new to IOS developing and recently started in Xcode 4.5. I saw for every viewController that i could set some identity variables including the storyboard ID. What is this, and how can I use it?

enter image description here

I started searching on stackoverflow and couldn’t find any explanation for it.

I assumed it’s not just some stupid label that I can set to remember my controller right? What does it do?

  • 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-15T20:19:39+00:00Added an answer on June 15, 2026 at 8:19 pm

    The storyboard ID is a String field that you can use to create a new ViewController based on that storyboard ViewController. An example use would be from any ViewController:

    //Maybe make a button that when clicked calls this method
    
    - (IBAction)buttonPressed:(id)sender
    {
        MyCustomViewController *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"MyViewController"];
    
       [self presentViewController:vc animated:YES completion:nil];
    }
    

    This will create a MyCustomViewController based on the storyboard ViewController you named “MyViewController” and present it above your current View Controller

    And if you are in your app delegate you could use

    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard"
                                                             bundle: nil];
    

    Edit: Swift

    @IBAction func buttonPressed(sender: AnyObject) {
        let vc = storyboard?.instantiateViewControllerWithIdentifier("MyViewController") as MyCustomViewController
        presentViewController(vc, animated: true, completion: nil)
    }
    

    Edit for Swift >= 3:

    @IBAction func buttonPressed(sender: Any) {
        let vc = storyboard?.instantiateViewController(withIdentifier: "MyViewController") as! ViewController
        present(vc, animated: true, completion: nil)
    }
    

    and

    let storyboard = UIStoryboard(name: "MainStoryboard", bundle: nil)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I'm developing in Xcode for iOS, and EVERY APP that I run in
I'm new in developing iOS app. So I've recently faced a problem with localization
I'm a new iOS programming and I'm developing a simple iPhone game that needs
I am completely new to Xcode and iOS developing in general. Basically I have
I've been developing an iOS app and recently upgraded to xCode 4.3.1 and the
I am very new to developing in iOS. I am trying to pass some
I'm new to iOS programming and is developing an app that requires the user's
I am a new guy to iOS. Recently, I am developing an iOS application
I'm kind of new to ios developing and was wondering could I navigate through
I'm new in Java. I'm developing program for Android similar to app for iOS.

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.