webView1 = [[UIWebView alloc] initWithFrame:CGRectMake(60, 10, 200, 200)];
[self.window addSubview:webView1];
NSString * path = [[NSBundle mainBundle] bundlePath];
NSString * filePath = [path stringByAppendingFormat:@"/index.html"];
NSURL * fileURL = [NSURL fileURLWithPath:filePath];
[webView1 loadRequest:[NSURLRequest requestWithURL:fileURL]];
Y si lo que cargamos es el HTML como cadena y sus contenidos referenciados (en la misma URL) están en la carpeta de recursos...
webView2 = [[UIWebView alloc] initWithFrame:CGRectMake(60, 210, 200, 200)];
[self.window addSubview:webView2];
NSString * path = [[NSBundle mainBundle] bundlePath];
NSString * html = @"<img src=\"imagen.png\"/>";
[webView2 loadHTMLString:html baseURL:[NSURL fileURLWithPath:path]];
Hola Jesus,
una pregunta, si yo tengo una cuenta de administrador y necesito dar de alta a dos iphone que no tengo físicamente para puedan correr un desarrollo realizado
como puedo hacerlo?
Gracias.