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

  • Home
  • SEARCH
  • 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 8008781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:14:37+00:00 2026-06-04T18:14:37+00:00

My code was working fine for days and weeks of code changes and running

  • 0

My code was working fine for days and weeks of code changes and running on my iPhone 5.0 simulator until I cleaned it.

Now it dies on this line [window addSubview:self.viewController.view];

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

    [self.window addSubview:self.viewController.view];   // dies here
    [self.window makeKeyAndVisible];

    return YES;
}

self.viewController exists, but self.viewController.view does not.

<code>self.viewController.view</code> does not exist

EDIT to add my AppDelegate.h:

#import <UIKit/UIKit.h>

@class MainMenu;

@interface yomikakiAppDelegate : NSObject <UIApplicationDelegate> {
    UIWindow *window;
    MainMenu *viewController;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet MainMenu *viewController;

@end

I think IB must have lost a connection somewhere, but I’m not sure how to rewire it.

I made my MainMenu.xib Referencing Outlet view be File’s Owner, but that didn’t fix it.

This didn't help but I hoped it would!!

How can I get my viewController get its view back?

EDIT to add screenshot of Identity Inspector of my nib file:

screenshot of .xib File's Owner Identity Inspector

  • 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-04T18:14:39+00:00Added an answer on June 4, 2026 at 6:14 pm

    Hello why are you doing this?

    [window addSubview:self.viewController.view];

    Try this

    [self.window addSubview:self.viewController.view];
    [self.window makeKeyAndVisible];
    return YES;

    The File Owner has to be linked to the View of the ViewController.

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

Sidebar

Related Questions

ASP.NET application performing oAuth with Facebook. This code was working fine until a few
So basically this code was working fine before. I had some computer issues and
My code was working absolutely fine before the launch of iPhone SDK 3.0 ,
Hi Javascript gurus, I have this Javascript code which is working fine on Firefox
I have following code And it is working fine in AIR device simulator on
I’m trying to issue web requests asynchronously. I have my code working fine except
the below code is working fine if the user enters the USN number that
For single output types my code is working fine but I couldn't get how
I have jquery validation code which is working fine in ff but the same
I have the following code that is working fine in jsfiddle - http://jsfiddle.net/darkajax/FHZBy/ I've

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.