Xcode IOS Webview not loading -


i have uibutton in 1 view gets tapped , should load url in webview. here code

- (void)viewdidload {     [super viewdidload];      self.webview.delegate = self;      nsurl *url = [nsurl urlwithstring:@"http://google.com"];     nsurlrequest *requesturl = [nsurlrequest requestwithurl:url];     [self.webview loadrequest:requesturl]; } 

here error: terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[webview initwithcoder:]: unrecognized selector sent instance


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -