views:

18

answers:

1

I need help with my WebView...I put this code in my viewDidLoad and it just crashes. Any advice?

[[gamerScoreWebView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]];
A: 

Replace with

[gamerScoreWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]; 

Also make sure that gamerScoreWebView is not nil by the time you do that.

Seva Alekseyev