tags:

views:

36

answers:

1

The following line works in the device and simulator just fine:

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

The following lines (in various versions) works fine in the simulator, but won't load the page in the device. Any Suggestions?

NSURL *tempURL = [NSURL URLWithString:[SharedClass sharedSharedClass].myURL]; // myURL is a NSString in my shared class
[webView loadRequest:[NSURLRequest requestWithURL:tempURL]];

Why would this quit working when I go from a hardcoded string to my shared string? The shared string works fine in other views and even gets stored to a plist file just fine.

A: 

Wouldn't you know as soon as I post this it started working... must have been something funny with the URL like a space or ????

driveguy