Gerben Vis

Ondernemend in de IT

  • Gigaspaces
  • Google
  • iPhone
  • Java
  • Oracle
  • Overige
  • The Future Group
  • Twitter

Exception : this class is not key value coding-compliant for the key

Posted at June 7, 2009

On my IPhone application, I want to show a view when there’s no internet connection. (faking by opening a non existing url) .

But, I get the following exception in the console :

Terminating app due to uncaught exception ‘NSUnknownKeyException’, reason: ‘[<NoInternetViewController 0x5159e0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key myViewOutlet.’

Here’s the code :

- (void)applicationDidFinishLaunching:(UIApplication *)application {

// Override point for customization after app launch

@try {
[[NSString alloc] initWithContentsOfURL:@”http://urldoesntexist…”];
[window addSubview:viewController.view];
} @catch (NSException* ex) {
[viewController.view removeFromSuperview];

noInternetViewController = [[NoInternetViewController alloc] initWithNibName:@”NoInternetConnection” bundle:nil];
[window addSubview:noInternetViewController.view];

}
[window makeKeyAndVisible];

}

The Exception occures on the [window makeKeyAndVisible];

What could be the problem ?

Find accessories for your iPhone at the Cell Phone Shop.

  • Post this to MySpace
  • Share this on Facebook
  • Tweet This!
  • Share this on Linkedin
iPhone

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Leave Comment

Click here to cancel reply.

(required)

(required)


Over mij

Gerben Vis

Gerben Vis

Aangesloten als IT ondernemer bij het succesvolle IT collectief The Future Group. Momenteel werkzaam als java ontwikkelaar op het Jive SBS platform

Mijn profiel op LinkedIn Mijn profiel op Vimeo

Zoeken

Archieven

  • January 2010
  • December 2009
  • November 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009

Categorieën

  • Gigaspaces
  • Google
  • iPhone
  • Java
  • Oracle
  • Overige
  • The Future Group
  • Twitter
  • Recente Artikelen

    • Op zoek naar toepassingen voor SMS interface
    • TFG doet weer mee aan Best Managed Companies
    • Space Based Architectuur (SBA) versus Tier Based Implementatie
    • Corporate presentatie The Future Group
    • Google Chrome nu ook beschikbaar op mac osx
  • Twitter

    • @mbavdv gefeliciteerd met je verjaardag 2 hrs ago
    • wat is er met de AD site gebeurt ? http://www.ad.nl/ 2 hrs ago
    • @diversit ios4 ja multitasking .... Nee, nog niet nodig gehad .... Ik mis het eigenlijk ook niet :) in reply to diversit 13 hrs ago
    • More updates...

    Posting tweet...

  • TwitterCounter

  • Pagina’s

    • Even voorstellen
    • Literatuur
  • Links

Powered by Wordpress | WP Premium theme by PSD to XHTML
Copyright 2009 Gerben Vis. All rights reserved