xcode - WebView load HTML page with all resources from a local directory -
I am developing a cocoa application. This is a requirement of application to load HTML pages from a local directory. The HTML page includes many resources such as links, images, JavaScript, XML and CSS files. So it is more like a local website without any server. How can I get it using WebView control? I am developing an application for Mac OS X.
Any help would be highly appreciated, Farooq -
You can use -
[[yourweebview mainframe] loadRequest: [NSRR request request with url: [NSUr URLWithString: pathOfLocalWebPage]]]; Hope this helps :)
Comments
Post a Comment