uiviewcontroller - Crash when Adding a WebView to a Multiview Tab Bar App -


i new , working thru "teach book". have 2 questions. how trouble-shoot in future , how darn thing work now.

i have simple 3 tab bar app points 3 uiviewcontroller. 3 views work fine until add webview 1 of xibs. bring view webview included in simulator, kicked out of app.

the debugger console says"'nsunknownkeyexception', reason: '[ setvalue:forundefinedkey:]: class not key value coding-compliant key bannerview.'" don't know means.

.h file code....

@interface convnavcontroller : uiviewcontroller { iboutlet uiwebview *bannerview; } -(ibaction)loadbannerview:(id)sender;

@property (nonatomic, retain)iboutlet uiwebview *bannerview;

========= .m file code -(ibaction)loadbannerview:(id)sender{

nsurl *bannerurl;  nsstring *bannerurlstring;  bannerurlstring=[[nsstring alloc] initwithstring:@"http://www.tak2000.com/banner_test.html"]; bannerurl =[[nsurl alloc] initwithstring:bannerurlstring];   [bannerview loadrequest:[nsurlrequest requestwithurl:bannerurl]];     [bannerurl release]; [bannerurlstring release]; 

}

i used simple button connected loadbannerview.

webview code worked great in simple 1 view example. why dying when use in multi uiviewcontroller app? btw: used "windows based app" template starting point. ensured class identity uiwebview.

thanks in advance...

bannerview property, should be

[self.bannerview loadrequest ....] 

and make sure in interface builder you've connected uiwebview bannerview outlet.


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -