2011-06-15 5 views

Répondre

9

Le code pour réaliser votre demande est:

UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 
self.view.frame.size.height,self.view.frame.size.width)]; 

NSString *indexPath = [NSBundle pathForResource:@"index" ofType:@"html" inDirectory:nil]; 
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:indexPath]]]; 
[self.view addSubview:webView]; 
1

essayer cela peut-il être utile pour vous heureux codage :) 123

Questions connexes