how to load an html file locally into the uiwebview
i am having problem with how to get the uiwebview loaded with local html file .provide the cod e as well i am having the hmtl file as fp_dis-1.html. thanks开发者_Python百科 in advance
Try this,
UIWebView *page;
[page loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"your-local-file-url" ofType:@"html"]isDirectory:NO]]];
精彩评论