Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You are getting this error because the <code>NSMainNibFile</code> value is set in your <code>Info.plist</code>. It tells the OS to open that <code>NIB</code> file at launch. Since you're doing away with <code>NIB</code>s for some reason, you will have to fill in the holes that you've created by deleting the <code>NIB</code> file.</p> <ol> <li>You've to delete the key from the <code>Info.plist</code>.</li> <li><p>You have to make some changes in your <code>main.m</code>. Usually the <code>MainWindow.xib</code> contained the information about your application delegate but now you need to provide it. Find the line that reads <code>int retVal = UIApplicationMain(argc, argv, nil, nil);</code> and replace it with <code>int retVal = UIApplicationMain(argc, argv, nil, @"yourDelegateClassName");</code></p></li> <li><p>What you've done so far will instantiate the application delegate and your <code>application:didFinishLaunchingWithOptions:</code> will get called but your <code>window</code> isn't set yet as it was taken care of by the <code>NIB</code> file again. This will apply to all your outlets. Not only your `window.</p></li> </ol> <p>You will have to make some additions to your <code>application:didFinishLaunchingWithOptions:</code> method like this,</p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Instantiate Window self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; // Instantiate Root view controller RootViewController * viewController = [[[RootViewController alloc] init] autorelease]; // Instantiate navigation controller navigationController = [[UINavigationController alloc] initWithRootViewController:viewController]; [application setStatusBarStyle:UIStatusBarStyleBlackOpaque]; [window addSubview:navigationController.view]; [self.window makeKeyAndVisible]; return YES; } </code></pre> <p>The above method is just a template and must be modified to your requirement.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload