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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:43:52+00:00 2026-06-10T20:43:52+00:00

I have a game with 4 game modes. the problem is that I want

  • 0

I have a game with 4 game modes. the problem is that I want to create a main menu to choose a mode, because instead of that menu there is a TabBar. I’m trying to do that putting each mode in different .xib files, and create an other .xib file for the menu.

Menu.m:

-(IBAction)PlayMode1:(id)sender{
ViewController *Mode1 = [[ViewController alloc] init];
[self presentModalViewController:Mode1 animated:YES];
[Mode1 release];
}

with this I’m getting this error: Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘- [UIViewController _loadViewFromNibNamed:bundle:] loaded the “ViewController” nib but the view outlet was not set.’

I checked that “view” is linked to “View” on IB so I don’t know what to do…

I’m not an advanced developer, thanks for helping!

xib hierarchy

  • 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-10T20:43:53+00:00Added an answer on June 10, 2026 at 8:43 pm

    You should try to do the following:

    -(IBAction)PlayMode1:(id)sender{
    
        ViewController *Mode1 = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
        [self presentModalViewController:Mode1 animated:YES];
        [Mode1 release];
    }
    

    Seems like you forget to put initWithNibName inside the allocation of the view.

    Also, make sure that your ViewController.xib is the correct name of the view controller and check if it has the correct outlets linked.

    Check View Identity > Class Identity is set too. If not, type in the name of your controller, ViewController


    EDIT

    Remove everything in the xib, “Window” and “ViewController”.

    Drag an UIView on the left column and set its outlet.

    Click on File’s Owner and then, on the Inspector, Identity inspector section (third one from the left), type in the class of your view, `ViewController´.

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

Sidebar

Related Questions

I want (in my game) to have a mode where two people can be
I have a problem with CI. I have a model: public function Game($id) {
I'm developing a game. I want to have game entities each have their own
I have a game that currently runs under Windows and Mac OS X and
I have a game engine that uses OpenGL for display. I coded a small
I have a game app that has the ability to go fullscreen and back
I am going to create game for android, this game has multiplayer mode, so
I want use many bitmap for my game canvas. I can't Recycle bitmaps, because
I have a little problem. I am working in a Title Screen or main
I am working on developing a Chess game. I want to have the board

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.