Is your index.html
actually named Index.html
? I believe pathForResource:ofType
is case sensitive.
Jasarien
2010-08-09 00:36:15
Is your index.html
actually named Index.html
? I believe pathForResource:ofType
is case sensitive.
pathForResource:ofType: is returning nil, and initFileURLWithPath: is complaining about it. Trap that error like so:
if(nil == pathb) {
NSLog("Couldn't find object named %@", [a3 objectAtIndex:0]);
} else {
NSURL *instructionsURLb = [[NSURL alloc] initFileURLWithPath:pathb];
[webView loadRequest:[NSURLRequest requestWithURL:instructionsURLb]];
}
and double check that you're searching for an object that actually exists in your bundle.