Thursday 1 October 2015

How To Use Resource File Like Html In Ios/Iphone


=> Here Some Use To How to Take Html Path Resources Of NS Main Bunddle:
=> Here Load ANd Use HTML Fole From Bunddle Resourses:
=> Take Forst NSSting Object :
=> Using That Path It Using UTF8StringEncoding Mthod :
=> it Adding PresentageEscapeUsing UIWebVIew Adan Display contect Of HTML:

NSString *htmlFile = [[NSBundle mainBundle] pathForResource:@"termsCond" ofType:@"htm"];
//        NSString* htmlString = [NSString stringWithContentsOfFile:htmlFile encoding:NSUTF8StringEncoding error:nil];
//        [self.webView loadHTMLString:htmlString baseURL:nil];
        NSString *path = [[NSBundle mainBundle] pathForResource:@"termsCond" ofType:@"html"];
        NSURL *url = [NSURL URLWithString:[path stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];