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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -