How can I display a HTML file from the Documents directory in my app?
Below is the code that I'm using and nothing is showing up in my UIWebView
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *filePath = [NSString stringWithFormat:@"%@/%@", documentsDirectory, @"Notes.html"];
NSURL *url = [NSURL URLWithString:filePath];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[notesListWeb loadRequest:request];
Why is this not working out?
I've found other answers but they aren't from the documents directory.
Your help is greatly appreciated.