[Solved] Html file in ios [closed]


If you want to load a local HTML file within the app, then use the below code

 self.wView.dataDetectorTypes = UIDataDetectorTypeLink;
    NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:INDEX_PAGE ofType:@"html" inDirectory:DIRECTOY_PATH]]; //Directory Path Example: ipad/main/pages
    [self.wView loadRequest:[NSURLRequest requestWithURL:url]];

Put this code in your button handler method

solved Html file in ios [closed]