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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:11:04+00:00 2026-06-09T18:11:04+00:00

I don’t understand the difference, and with the release of the new xcode 4

  • 0

I don’t understand the difference, and with the release of the new xcode 4 (I have the latest 4.4.1) I cant follow some books I bought, I’m lost.

In the book says I need to click on myprogramViewController.xib, but in the new xcode that doesn’t appear, do I need to create it?

Also there’s missing the MainWindow.xib (but that one I already created it), also in the book says open the myapplicationViewController.m and myapplicationViewController.h to make some changes (I suppose that is the same ViewController.m and myapplicationViewController.m and the same with the .h ones) I’m confused.

So where do I drag buttons and labels and all that stuff? In the MainWindow or in the ViewController? (but do I need to create ViewController?) I’m referring to the .xib one, because I only have ViewController.m and ViewController.h, the .xib one is missing.

I need some help, thank you all!

PS: I’m using single-view application.

  • 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-09T18:11:05+00:00Added an answer on June 9, 2026 at 6:11 pm

    When creating a new Single View iOS App from Xcode 4.3+, there isn’t any default ViewController.xib. Instead, you have MainStoryboard_*.storyboard which contains a root view controller in which you can add labels, buttons, or any other UI elements.

    This root view controller’s identity is ViewController, which refers to the UIViewController subclass defined in ViewController.h/m. When you add a button in the storyboard’s root view controller, you can CTRL+drag it to ViewController.h to create an outlet (a connection between an UI element and an instance property) and then write some code in ViewController.m.

    Let’s take a look at the following screenshot:

    enter image description here

    I added a Round Rect Button to the root view controller, clicked on “Assistant editor”, and CTRL+dragged it to ViewController.h, and named the outlet “button”. Then, in the -viewDidLoad method, you can do something like:

    [_button setTitle: @"myTitle" forState: UIControlStateNormal];
    

    Edit

    As far as I know, there is no file owner for a storyboard. Each view controller is instantiated separately with their own UIViewController subclass instance, and you can access each one of them from AppDelegate.m using self.window.rootViewController and its subviews. So the “implicit file owner” is AppDelegate.

    You could follow a storyboard-based tutorial like this one. I personally don’t like using storyboards because too many things are implicit. I have one xib per page (view controller) and load them separately from a main root viewcontroller instantiated in appDelegate.

    To see how it works without storyboard, Xcode let you the option not to use them when creating a project. You’ll get a simple ViewController.xib/h/m instantiated from AppDelegate.

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

Sidebar

Related Questions

Don't they both have to convert to machine code at some point to execute
Don't know if this is possible, but I have some code like this: val
Don't quite understand determinism in the context of concurrency and parallelism in Haskell. Some
Don't ask me how but I'm in a situation where I have DCPs published
don't know what happened in my jcrop selection. I think I pressed some keys
I have just tried to save a simple *.rtf file with some websites and
Don't think that I'm mad, I understand how php works! That being said. I
Don't overthink this - there's a very commonly used term and I ... have
Don't have much to say, just can get into the event handler. XAML: <Grid>
Don't think my virtualhost is working correctly. This is what I have inside of

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.