Search code examples
htmlxcodeipaddynamic-html

how to present the HTML output to the view


i hav an html file which displays table view ,how to load this on the ipad view ..

and i want to enter the values to the fields of table view in html o/p....

any ideas ..

Thanks in advance...


Solution

  • You'll want to take a look at the UIWebView for displaying a local html file onto the iOS device.

    The code below will load index.html from your project folder:

    [webView loadRequest:
        [NSURLRequest requestWithURL:
            [NSURL fileURLWithPath:
                [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"] 
                isDirectory:NO]
        ]
    ];