Hey all,
I am getting an error when I try to read a local file
Code:
'*** -[NSURL initFileURLWithPath:isDirectory:]: nil string parameter'
The code I am using to try an read the file is
Code:
[webView loadRequest:
[NSURLRequest requestWithURL:
[NSURL fileURLWithPath:
[[NSBundle mainBundle]
pathForResource:@"/html/index"
ofType:@"html"]
isDirectory:NO]]];
html is a folder in my project folder and index is the file i am trying to read. I'm not quite sure what is wrong. If someone could help me out that would be great.
Thanks
Clinton