Can't find webViewDidfinishLoad method in MainViewController.m


#1

I’m trying to use the Moodstocks image recognition plugin which requires me to make the webview transparent by changing the webview background colour in the webViewDidfinishLoad method in MainViewController.m however I can no longer find that method in the latest version of Cordova/Ionic.

Have I missed a major change in the way webviews work? Can I still make the webview transparent, perhaps by adding the webViewDidfinishLoad method manually?


#2

I figured it out. So to answer my own question:

- (void)viewDidLoad { [super viewDidLoad]; // Make webview transparent self.webView.backgroundColor = [UIColor clearColor]; self.webView.opaque = NO; }